Author Topic: Need help on custom quickmessage menu  (Read 533 times)

Offline gixslayer

  • Rank: Private
  • *
  • Posts: 9
Need help on custom quickmessage menu
« on: November 13, 2010, 01:31:36 pm »
Hey,

I'm trying to make a custom quickmessage menu like the one promod has (The graphic change one).
I got it pretty much finished, but I got one last issue I can't fix.
I've been trying all day but got nowhere.

Right now it will say 'Lighting: '
But in the promod it will display the current value behind it.
here is the code part I'm talking about.
So in other words I want to change

Code: [Select]
text "1. Lighting: "
to display the text + this value, self.pers["probot_cache_sunlight"]
is there some way to create a variable in a .gsc file that I can access from the .menu file so I can just set the text to that variable and update it in my .gsc scripts? Or another smart way?
It is possible, just can't figure out how.
So I'd appreciate a bit of help here :/

Code: [Select]
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 36 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "1. Lighting: "
decoration
}
execKey "1" { scriptMenuResponse "1"; close probot_gfx }