Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.47 KB | None | 0 0
  1. mineralsDialog - Create
  2.     Options: Action, Create Thread
  3.     Return Type: (None)
  4.     Parameters
  5.     Grammar Text: mineralsDialog - Create()
  6.     Hint Text: (None)
  7.     Custom Script Code
  8.     Local Variables
  9.         i = 0 <Integer>
  10.         width = 550 <Integer>
  11.         height = 50 <Integer>
  12.         textwidth = 100 <Integer>
  13.         inlay = 5 <Integer>
  14.         imageSize = 40 <Integer>
  15.     Actions
  16.         Dialog - Create a Modal dialog of size (width, height) at (0, 0) relative to Top Right of screen
  17.         Dialog - Hide the background image of (Last created dialog)
  18.         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
  19.         Dialog - Set (Last created dialog item) tooltip to "Income: How much minerals you get e..." for (All players)
  20.         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
  21.         Variable - Set mins.incomeText = (Last created dialog item)
  22.         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
  23.         Dialog - Set (Last created dialog item) tooltip to "Minerals: Spend them on units." for (All players)
  24.         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
  25.         Variable - Set mins.mineralsText = (Last created dialog item)
  26.         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
  27.         Dialog - Set (Last created dialog item) tooltip to "Gas: Spend it on units, it is the m..." for (All players)
  28.         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
  29.         Variable - Set mins.gasText = (Last created dialog item)
  30.         Dialog - Show (Last created dialog) for (All players)
  31.  
  32.  
  33.  
  34.  
  35. and then:
  36. ----------------------
  37.                 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