• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient [OTCv8] Modifying skill, battle, etc. buttons

Dawg

Member
Joined
Mar 23, 2014
Messages
184
Reaction score
22
As the title says, here is a picture for reference:
Screenshot 2024-08-15 at 5.03.06 PM.webp

I know where to change the images for these buttons, but I cannot figure out where their size is defined. I want "skills" to be that bigger box with the word "Skills" inside (like the RL client used to be), but its cutting it off because the original button is smaller.

I've checked skills.lua, skills.otui, topbar, nothing I change seems to make a difference. Tried searching for existing tutorials here, no exact answers for this. That entire group if icons circled in red must have some name, but I can't figure out what it is.

Thank you!
 
not a straight solution, but if skills.png is the file to render the skills, you should look for skills.png in the code and see where it is being used. If you find nothing, look for usage of that directory in the code instead. This will pinpoint the entry point for these images, which you can edit and/or reorganize them (as it is shown in the code, if you find it).
 
As the title says, here is a picture for reference:
View attachment 86564

I know where to change the images for these buttons, but I cannot figure out where their size is defined. I want "skills" to be that bigger box with the word "Skills" inside (like the RL client used to be), but its cutting it off because the original button is smaller.

I've checked skills.lua, skills.otui, topbar, nothing I change seems to make a difference. Tried searching for existing tutorials here, no exact answers for this. That entire group if icons circled in red must have some name, but I can't figure out what it is.

Thank you!



I dont remember, but you can change it.

layout/your_layout/ here introduce a new file 40-gamebuttons.otui.

Do something like this inside, fit your own size:

LUA:
GameButtonsWindow < HeadlessMiniWindow
  height: 50
  size: 200 150
  &forceOpen: true
  &autoOpen: 4

  MiniWindowContents
    margin-top: 26
    margin-left: 8
    margin-right: 8
    
    Panel
      id: buttons
      anchors.fill: parent
      layout:
        type: grid
        cell-spacing: 1
        cell-size: 23 23
        flow: true


Here works using a mobile layout for example, instead of adding it on the top, it will create a windows that you can move somewhere, adjusting size and position of buttons.
 
Back
Top