Darknesslighter Posted September 13, 2012 Author Share Posted September 13, 2012 Community,I searched a hour today to find out how to change the GetPlayerPOINTS position within the Character Stats menu, and I'm still stuck.. The code is looking like this:```If GetPlayerPOINTS(MyIndex) > 0 Then ' draw the buttons For buttonnum = 16 To 20 x = GUIWindow(GUI_CHARACTER).x + Buttons(buttonnum).x y = GUIWindow(GUI_CHARACTER).y + Buttons(buttonnum).y Width = Buttons(buttonnum).Width Height = Buttons(buttonnum).Height RenderTexture Tex_Buttons(Buttons(buttonnum).PicNum), x, y, 0, 0, Width, Height, Width, Height ' render accept button If Buttons(buttonnum).state = 2 Then ' we're clicked boyo Width = Buttons(buttonnum).Width Height = Buttons(buttonnum).Height 'EngineRenderRectangle Tex_Buttons_c(Buttons(buttonnum).PicNum), x, y, 0, 0, width, height, width, height, width, height RenderTexture Tex_Buttons_c(Buttons(buttonnum).PicNum), x, y, 0, 0, Width, Height, Width, Height ElseIf (GlobalX >= x And GlobalX <= x + Buttons(buttonnum).Width) And (GlobalY >= y And GlobalY <= y + Buttons(buttonnum).Height) Then ' we're hoverin' 'EngineRenderRectangle Tex_Buttons_h(Buttons(buttonnum).PicNum), x, y, 0, 0, width, height, width, height, width, height RenderTexture Tex_Buttons_h(Buttons(buttonnum).PicNum), x, y, 0, 0, Width, Height, Width, Height ' play sound if needed If Not lastButtonSound = buttonnum Then PlaySound Sound_ButtonHover, -1, -1 lastButtonSound = buttonnum End If Else ' we're normal 'EngineRenderRectangle Tex_Buttons(Buttons(buttonnum).PicNum), x, y, 0, 0, width, height, width, height, width, height RenderTexture Tex_Buttons(Buttons(buttonnum).PicNum), x, y, 0, 0, Width, Height, Width, Height ' reset sound if needed If lastButtonSound = buttonnum Then lastButtonSound = 0 End If NextEnd If```I could use some help, since I am not an experienced scripter and it is possible something easily..Thank you!EightTray Link to comment Share on other sites More sharing options...
Matt Posted September 13, 2012 Share Posted September 13, 2012 Do you mean on the form? Just go onto the frmMain and find the lbl. Then, you can either move it around manually, or change the left and top in the Properties box. Link to comment Share on other sites More sharing options...
Darknesslighter Posted September 13, 2012 Author Share Posted September 13, 2012 > Do you mean on the form? Just go onto the frmMain and find the lbl. Then, you can either move it around manually, or change the left and top in the Properties box.Hmmn, seems not to be in FrmMain, I am using Eclipse Advanced.. I should have mentioned that in my first post. Link to comment Share on other sites More sharing options...
blkcrow Posted September 13, 2012 Share Posted September 13, 2012 ```x = GUIWindow(GUI_CHARACTER).x + Buttons(buttonnum).xy = GUIWindow(GUI_CHARACTER).y + Buttons(buttonnum).y```thats what you need to change. Change the Buttons(Buttonnum).x and Buttons(buttonnum).y values before they are passed into the x and y variables and you are done. 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