|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sat Sep 01, 2007 11:57 pm
[2.02] Button Problems |
Okay, I posted about this for version 2.01. Now I don't really know if this is a bug, or if it is me not knowing how to do it correctly. However, I now realize what the problem is.
Let's say I have an alias called onelixirs that sets the value of AutoElixirs to 1 and offelixirs that sets it to 0. I also had in this alias to change the color of the button accordingly, such as #noop %btncol( btn_elixir, green, white). The problem is here. By adding in this part to change the color of the button it causes an error and tells me access is denied. If I just simply put onelixirs value to AutoElixirs=1 there it works fine. However, it makes the button transparent no matter what. The off state colors the button whatever color I put in the options. The on state just makes it transparent no matter what. Although, right when you first edit the button it makes it black.
When you create the settings in options for the button the off state appears and you can change the color there and uncheck transparent. However, when you click back anywhere else that vanishes. When you close Cmud and reopen it the buttons all go back to transparent.
Can someone please tell me how to do this or if this is correct? How do I change the colors of the button when it is on? |
|
Last edited by oldguy2 on Sun Sep 02, 2007 2:48 pm; edited 1 time in total |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sun Sep 02, 2007 2:33 pm |
Well I narrowed down one problem on this. By clicking the XML tab I see the following on the buttons. Here is just one button.
Code: |
<button caption="CombatRites" type="Toggle" variable="@combatrites" width="68" height="20" iconleft="false" toolstyle="true" transparent="false" color="aliceblue" textcolor="aliceblue" priority="36060" id="3606">
<state color="aliceblue"></state>
</button> |
The only problem is the colors are maroon and white for disabled. Everything is aliceblue no matter what. Also if I change the color here it just goes right back to aliceblue. |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sun Sep 02, 2007 3:03 pm |
Okay sorry for most posts. I narrowed down more of my problem. If I don't put a caption in the off state, then it just reverts to transparent. If I do put a caption then the colors stay. However, XML still shows aliceblue no matter what even though the colors are something else. Maybe I am misunderstanding here?
|
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Sun Sep 02, 2007 3:20 pm |
XML is messed up. It shows aliceblue for all buttons, everywhere.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Sep 03, 2007 4:31 pm |
I have added the button XML color problem to the bug list.
|
|
|
|
|
|