Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mineralsDialog - Create
- Options: Action, Create Thread
- Return Type: (None)
- Parameters
- Grammar Text: mineralsDialog - Create()
- Hint Text: (None)
- Custom Script Code
- Local Variables
- i = 0 <Integer>
- width = 550 <Integer>
- height = 50 <Integer>
- textwidth = 100 <Integer>
- inlay = 5 <Integer>
- imageSize = 40 <Integer>
- Actions
- Dialog - Create a Modal dialog of size (width, height) at (0, 0) relative to Top Right of screen
- Dialog - Hide the background image of (Last created dialog)
- Dialog - Create an image for dialog (Last created dialog) with the dimensions (imageSize, imageSize) anchored to Left with an offset of (inlay, 0) setting the tooltip to "" using the image Assets\Textures\icon-highyieldmineral.dds as a Normal type with tiled set to false tint color White and blend mode Normal
- Dialog - Set (Last created dialog item) tooltip to "Income: How much minerals you get e..." for (All players)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions ((textwidth + 100), (imageSize - 20)) anchored to Left with an offset of ((+ (imageSize, inlay, inlay)), 0) with the text (Text(player[0].income 2) with Any Precision decimal places) color set to White text writeout set to false with a writeout duration of 2.0
- Variable - Set mins.incomeText = (Last created dialog item)
- Dialog - Create an image for dialog (Last created dialog) with the dimensions (imageSize, imageSize) anchored to Left with an offset of ((+ (inlay, imageSize, inlay, textwidth, inlay, height)), 0) setting the tooltip to "" using the image Assets\Textures\icon-mineral.dds as a Normal type with tiled set to false tint color White and blend mode Normal
- Dialog - Set (Last created dialog item) tooltip to "Minerals: Spend them on units." for (All players)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (textwidth, (imageSize - 20)) anchored to Left with an offset of ((+ (imageSize, inlay, inlay, textwidth, inlay, imageSize, inlay, height)), 0) with the text (Text(player[0].minerals) with Any Precision decimal places) color set to White text writeout set to false with a writeout duration of 2.0
- Variable - Set mins.mineralsText = (Last created dialog item)
- Dialog - Create an image for dialog (Last created dialog) with the dimensions (imageSize, imageSize) anchored to Left with an offset of ((+ (inlay, imageSize, inlay, textwidth, inlay, imageSize, inlay, textwidth, inlay, height)), 0) setting the tooltip to "" using the image Assets\Textures\icon-gas.dds as a Normal type with tiled set to false tint color White and blend mode Normal
- Dialog - Set (Last created dialog item) tooltip to "Gas: Spend it on units, it is the m..." for (All players)
- Dialog - Create a label for dialog (Last created dialog) with the dimensions (textwidth, (imageSize - 20)) anchored to Left with an offset of ((+ (imageSize, inlay, inlay, textwidth, inlay, imageSize, inlay, textwidth, inlay, imageSize, inlay, height)), 0) with the text (Text(inc gas)) color set to White text writeout set to false with a writeout duration of 2.0
- Variable - Set mins.gasText = (Last created dialog item)
- Dialog - Show (Last created dialog) for (All players)
- and then:
- ----------------------
- Dialog - Set mins.mineralsText text to (Text(player[i].minerals) with 0 decimal places) for (Player group(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement