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

How do I move Stat Buttons


NiceLoki
 Share

Recommended Posts

Hi…. well.... I want to move Stat buttons on EFF.... but, the code for rendering stats is:

```

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
' 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

' draw the equipment
DrawEquipment
End Sub

```
What do i have to edit for moving it? thanks X_X this is DX8 btw
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...