Bump still looking for help....
|
Hey guys can anyone help me? I have made a simple screen with hover buttons, And it dose not seem to work or give me errors. The interface comes up with the first button, but when I hover it does not work does anyone have any idea or did I do anything wrong.
Code:public static void gamble(TextDrawingArea[] tda) {//The tyoe and name of the interface... RSInterface tab = addScreenInterface(31100);//interface id addSprite(31101, 0, "SCREEN");//this is the background for the main interface. addHoverButton(31102, "Hover", 0, 38, 50, "1,000,000gp", -1, 31103, 1);//regular button with no glowing effects. addHoveredButton(31103, "Hover", 1, 38, 50, 31104);//Button that has the glowing effects tab.totalChildren(3);//3 children, tab.child(0, 31101, 10, 12);//1 tab.child(1, 31102, 50, 20);//2 tab.child(2, 31103, 50, 20);//3 }//closing bracket
This is a picture
pm me for my skype if you need it,
So sorry, If you could not understand. What I am trying to do is when the mouse its over the "sprite number 1" It should change the sprite to the other hover sprite.
In the picture my mouse is over the hover sprite, But it is not changing it to the other sprite which has glowing effects around it, Giving it a hover effect. The button works in game fine and everything. The only issue is the hover button is not appearing upon hover. If anyone would be able to help me please do. Because from what I see is its flawless, And has no issues. Its just the hovering does not work.
Thanks
Try Using This:
Code:public static void gamble(TextDrawingArea[] tda) {//The tyoe and name of the interface... RSInterface tab = addScreenInterface(31100);//interface id addSprite(31101, 0, "SCREEN");//this is the background for the main interface. addHoverButton(31102, "Hover", 0, 38, 50, "1,000,000gp", -1, 31103, 1);//regular button with no glowing effects. addHoveredButton(31104, "Hover", 1, 38, 50, 31105);//Button that has the glowing effects tab.totalChildren(3);//3 children, tab.child(0, 31101, 10, 12);//1 tab.child(1, 31102, 50, 20);//2 tab.child(2, 31104, 50, 20);//3 }//closing bracket
Hey thanks, I just tried this. I is giving me the same problem, Hover 0 is still there even when im hovering....
For example When I move my mouse onto the "Number 1" Hover 0 is there and is still there when its suppouse to be changing to "Hover 1".
I dont know what would cause the issue, And the code seems to be fine but, Its still not allowing "Hover 1" To appear while you "Hover 0"
Thanks for the help though
Replace your hover codes with this:
Tell me how it works.Code:addHoverButton(31102, "Hover", 0, 38, 50, "1,000,000gp", 0, 31103, 1);//regular button with no glowing effects. addHoveredButton(31103, "Hover", 1, 38, 50, 31104);//Button that has the glowing effects
Its doing the same thing as above when i hover is dose not change the
thats the code with yours in it.Code:public static void gamble(TextDrawingArea[] tda) {//The tyoe and name of the interface... RSInterface tab = addScreenInterface(31100);//interface id addSprite(31101, 0, "SCREEN");//this is the background for the main interface. addHoverButton(31102, "Hover", 0, 38, 50, "1,000,000gp", 0, 31103, 1);//regular button with no glowing effects. addHoveredButton(31103, "Hover", 1, 38, 50, 31104);//Button that has the glowing effects tab.totalChildren(3);//3 children, tab.child(0, 31101, 10, 12);//1 tab.child(1, 31102, 50, 20);//2 tab.child(2, 31103, 50, 20);//3 }//closing bracket
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |