Aurelijus1 Posted October 21, 2015 Author Share Posted October 21, 2015 Why first 4 (case1, case2, case3, case4) not working but other 2 (case5, case6) works fine. I only changed those 4 buttons positions in modGeneral.Code:```' MenuPublic Sub Menu_MouseUp()Dim i As Long, X As Long, Y As Long, buffer As clsBuffer ' find out which button we're clicking For i = 1 To 6X = GUIWindow(GUI_MENU).X + Buttons(i).XY = GUIWindow(GUI_MENU).Y + Buttons(i).Y ' check if we're on the button If (GlobalX >= X And GlobalX <= X + Buttons(i).Width) And (GlobalY >= Y And GlobalY <= Y + Buttons(i).Height) Then If Buttons(i).state = 2 Then ' do stuffs Select Case i Case 1 ' open window OpenGuiWindow 1 Case 2 ' open window OpenGuiWindow 2 Case 3 ' open window OpenGuiWindow 3 Case 4 ' open window OpenGuiWindow 4 Case 5 If myTargetType = TARGET_TYPE_PLAYER And myTarget <> MyIndex Then SendTradeRequest Else AddText "Invalid trade target.", BrightRed End If Case 6 ' open window OpenGuiWindow 6 End Select ' play sound PlaySound Sound_ButtonClick, -1, -1 End If End If Next``` Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 21, 2015 Share Posted October 21, 2015 are they inside of the GUI Window? that system uses a bounding box type of thing where if it's outside of the window it's meant to be on, you can't interact with it, ofc you could change this by removing a couple lines Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 21, 2015 Author Share Posted October 21, 2015 Yes they are inside. Look at this http://snag.gy/Bwcqc.jpg Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 21, 2015 Share Posted October 21, 2015 that is because it is outside of the gui you derp, piece it together lol, there's a reason there's a tiny image below the buttons! Link to comment Share on other sites More sharing options...
BeNjO Posted October 21, 2015 Share Posted October 21, 2015 Another thread relating to this? Link to comment Share on other sites More sharing options...
Genusis Posted October 22, 2015 Share Posted October 22, 2015 Yeah really. maybe someone should combine the topics into one? Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 24, 2015 Author Share Posted October 24, 2015 there is no tiny picture below the buttons it's DX8 NOT DX7* * *and no matter how I put those buttons in the corner they work perfect, but then I move when further from corner them stops working. **I can change them places with other buttons and they still works the same, if there is tiny buttons below picture, then, then I change them places they should open different gui but they don't. If anyone have suggestion how can i fix it please tell my without calling my derp*** * *@'BeNjO':> Another thread relating to this?no another relate to frmMain Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 29, 2015 Author Share Posted October 29, 2015 So who can tell my how can I make those buttons working? Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 29, 2015 Share Posted October 29, 2015 If you can't understand the basics of a bounding box then there's no hope in telling you why the buttons don't work. Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 29, 2015 Author Share Posted October 29, 2015 I DON'T KNOW DX8* * *because peoples like you i don't know dx8 basics* * *P.S I DON'T ASKING WHY BUTTONS NOT WORKING. I'AM ASKING HOW TO FIX IT… Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 29, 2015 Share Posted October 29, 2015 You can fix this by learning how the code works :DWe're not here to hold your hand through the process of you making your game, you want to make, you have to fix it, we give you hints towards fixing it, you choose to be lazy and want the answer right away, which is why i won't help you Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 29, 2015 Author Share Posted October 29, 2015 where can i get information about dx8 buttons ? give my link.* * *douchebag* * *bum i have fixed it MUHAHAHAHA!! :D Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 29, 2015 Share Posted October 29, 2015 sorry but im not here to sugar coat your day, but congrats! Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted October 29, 2015 Share Posted October 29, 2015 @'Aurelijus1':> where can i get information about dx8 buttons ? give my link.> > * * *> > douchebag> > * * *> > bum i have fixed it MUHAHAHAHA!! :DWell, aren't you helpful to everyone who wants to know the answer to your question. Rather than calling people jerks then being one, call them jerks then not be one to people later on. Link to comment Share on other sites More sharing options...
GalacticGlum Posted October 29, 2015 Share Posted October 29, 2015 Again calling people names. Dude no one is gonna help you you're being ignorant and expecting to have everything handed to you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now