What is the best way to update a menu? For instance during skill gain if I want to show my current skill after a gain? Do I need to delete the Label and re-add it to the menu or is there a better way?
Here is the menu I was messing with.
chooseskill peac
set %currentskill #SKILL
set %startskill #SKILL
set %skillcap #SKILLCAP
set %numberofgains 0
gosub Menu1
repeat
{
set %numberofgains %numberofgains + 1
wait 1
}
until %numberofgains = 10
halt
sub Menu1
menu Clear
menu Window Title
menu Window Color Blue
menu Window Size 199 179
menu Font Transparent #true
menu Font Align Right
menu Shape EUOShape1 -49 0 297 197 5 7 1 Black 7 White
menu Font Name MS Sans Serif
menu Font Size 12
menu Font Style
menu Font Color WindowText
menu Font Transparent #false
menu Font Align Center
menu Font BGColor White
menu Text EUOLabel3 52 8 Peacemaking
menu Text EUOLabel1 5 36 Current Skill
menu Text EUOLabel2 5 72 Skill Cap
menu Text EUOLabel4 5 108 Gains
menu Font Align Center
menu Text EUOLabel7 112 36 %currentskill
menu Text EUOLabel5 112 72 %skillcap
menu Text EUOLabel6 112 108 %numberofgains
menu Font Size 8
menu Font BGColor BtnFace
menu Button Start 59 140 75 25 Start
menu Show 421 270
Return