Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[HELP] GetPlayerPOINTS position change.


Darknesslighter
 Share

Recommended Posts

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

Next

End 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

```

x = GUIWindow(GUI_CHARACTER).x + Buttons(buttonnum).x

y = 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...