Author Topic: menu button looks allready pressed.  (Read 2618 times)

0 Members and 1 Guest are viewing this topic.

Offline camotbikTopic starter

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +38
  • Referrals: 0
    • View Profile
menu button looks allready pressed.
« on: October 11, 2011, 04:19:12 AM »
0

If you take a look, you will see that when we create a menu, it seems that setup button is allready pressed, but in reality it's not. Any ideas how to fix this?

Code: [Select]
Sub Menu
  set %status Please , #spc , press , #spc , a , #spc , button , #spc , to , #spc , start!
  set %iron 0
  set %dull_copper 0
  set %shadow_iron 0
  set %copper 0
  set %bronze 0
  set %golden 0
  set %agapite 0
  set %verite 0
  set %valorite 0
  set %shovels_used 0
  set %recalled_times 0
  set %time 0
  set %opm 0
  set %oph 0
  menu Clear
  menu Window Title CAMOTbIK's Dirty miner 0.1
  menu Window Color None
  menu Window Size 225 338
  menu Font Name MS Sans Serif
  menu Font Size 8
  menu Font Style
  menu Font Color Window
  menu Font BGColor Purple
  menu Button Setup 60 308 40 20 Setup
  menu Font BGColor Blue
  menu Button Clear 100 308 40 20 Clear
  menu Font BGColor Red
  menu Button Exit 180 308 40 20 Exit
  menu Font BGColor Green
  menu Button Start 140 308 40 20 Start
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Size 10
  menu Font Style b
  menu Font Color Background
  menu Font Transparent #false
  menu Font Align Left
  menu Font BGColor Black
  menu Text Status 4 4 %status
  menu Font Name Arial
  menu Font Color Maroon
  menu Font BGColor None
  menu Text EUOLabel2 4 20 Iron
  menu Font Color Teal
  menu Font BGColor Black
  menu Text EUOLabel3 4 40 Dull copper
  menu Font Color Gray
  menu Font BGColor None
  menu Text EUOLabel4 4 60 Shadow Iron
  menu Font Color Fuchsia
  menu Text EUOLabel5 4 80 Copper
  menu Font Color Olive
  menu Text EUOLabel6 4 100 Bronze
  menu Font Color Yellow
  menu Text EUOLabel7 4 120 Golden
  menu Font Color Purple
  menu Text EUOLabel8 4 140 Agapite
  menu Font Color Green
  menu Text EUOLabel9 4 160 Verite
  menu Font Color Background
  menu Text EUOLabel10 4 180 Valorite
  menu Font Color Silver
  menu Text EUOLabel12 4 200 Shovels used
  menu Text EUOLabel13 4 220 Recalled times
  menu Text EUOLabel14 4 240 Script running
  menu Text EUOLabel11 4 260 Ore per minute
  menu Text EUOLabel15 4 280 Ore per hour
  menu Font Align Right
  menu Text EUOLabel1 210 20 %iron
  menu Text EUOLabel16 210 40 %dull_copper
  menu Text EUOLabel17 210 60 %shadow_iron
  menu Text EUOLabel18 210 80 %copper
  menu Text EUOLabel19 210 100 %bronze
  menu Text EUOLabel20 210 120 %golden
  menu Text EUOLabel21 210 140 %agapite
  menu Text EUOLabel22 210 160 %verite
  menu Text EUOLabel23 210 180 %valorite
  menu Text EUOLabel24 210 200 %shovels_used
  menu Text EUOLabel25 210 220 %recalled_times
  menu Text EUOLabel26 210 240 %time
  menu Text EUOLabel27 210 260 %opm
  menu Text EUOLabel28 210 280 %oph
  set #menubutton N/A
  menu Show 0 0
return
What you witness -- is whatver..
uogamers hybrid.

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: menu button looks allready pressed.
« Reply #1 on: October 11, 2011, 09:24:05 AM »
0
Hi,

I can't explain you the reason but I had the same issue and finally changed
they way to create such displays. When you split the display commands into
two SUBs one for the basic settings and one for the buttons it works without your issue

Code: [Select]
GoSUB Menu
GoSUB Buttons
Set #menubutton N/A

halt

Sub Menu
  set %status Please , #spc , press , #spc , a , #spc , button , #spc , to , #spc , start!
  set %iron 0
  set %dull_copper 0
  set %shadow_iron 0
  set %copper 0
  set %bronze 0
  set %golden 0
  set %agapite 0
  set %verite 0
  set %valorite 0
  set %shovels_used 0
  set %recalled_times 0
  set %time 0
  set %opm 0
  set %oph 0
  menu Clear
  menu Window Title CAMOTbIK's Dirty miner 0.1
  menu Window Color None
  menu Window Size 225 338
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Size 10
  menu Font Style b
  menu Font Color Background
  menu Font Transparent #false
  menu Font Align Left
  menu Font BGColor Black
  menu Text Status 4 4 %status
  menu Font Name Arial
  menu Font Color Maroon
  menu Font BGColor None
  menu Text EUOLabel2 4 20 Iron
  menu Font Color Teal
  menu Font BGColor Black
  menu Text EUOLabel3 4 40 Dull copper
  menu Font Color Gray
  menu Font BGColor None
  menu Text EUOLabel4 4 60 Shadow Iron
  menu Font Color Fuchsia
  menu Text EUOLabel5 4 80 Copper
  menu Font Color Olive
  menu Text EUOLabel6 4 100 Bronze
  menu Font Color Yellow
  menu Text EUOLabel7 4 120 Golden
  menu Font Color Purple
  menu Text EUOLabel8 4 140 Agapite
  menu Font Color Green
  menu Text EUOLabel9 4 160 Verite
  menu Font Color Background
  menu Text EUOLabel10 4 180 Valorite
  menu Font Color Silver
  menu Text EUOLabel12 4 200 Shovels used
  menu Text EUOLabel13 4 220 Recalled times
  menu Text EUOLabel14 4 240 Script running
  menu Text EUOLabel11 4 260 Ore per minute
  menu Text EUOLabel15 4 280 Ore per hour
  menu Font Align Right
  menu Text EUOLabel1 210 20 %iron
  menu Text EUOLabel16 210 40 %dull_copper
  menu Text EUOLabel17 210 60 %shadow_iron
  menu Text EUOLabel18 210 80 %copper
  menu Text EUOLabel19 210 100 %bronze
  menu Text EUOLabel20 210 120 %golden
  menu Text EUOLabel21 210 140 %agapite
  menu Text EUOLabel22 210 160 %verite
  menu Text EUOLabel23 210 180 %valorite
  menu Text EUOLabel24 210 200 %shovels_used
  menu Text EUOLabel25 210 220 %recalled_times
  menu Text EUOLabel26 210 240 %time
  menu Text EUOLabel27 210 260 %opm
  menu Text EUOLabel28 210 280 %oph
  menu Show 0 0
return

SUB Buttons
  menu Font Name MS Sans Serif
  menu Font Size 8
  menu Font Style
  menu Font Color Window
  menu Font BGColor Purple
  menu Button Setup 60 308 40 20 Setup
  menu Font BGColor Blue
  menu Button Clear 100 308 40 20 Clear
  menu Font BGColor Red
  menu Button Exit 180 308 40 20 Exit
  menu Font BGColor Green
  menu Button Start 140 308 40 20 Start
return

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
Display.jpg

Offline camotbikTopic starter

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +38
  • Referrals: 0
    • View Profile
Re: menu button looks allready pressed.
« Reply #2 on: October 11, 2011, 11:04:46 AM »
0
rana70 Thank you very much!
What you witness -- is whatver..
uogamers hybrid.

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: menu button looks allready pressed.
« Reply #3 on: October 11, 2011, 11:54:18 AM »
0
Interesting find Rana, I never had that issue before. Very bizarre and good info for future reference!

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Tags: