• 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!

[SOLVED] Top menu item size

knightxd

Member
Joined
Feb 21, 2009
Messages
211
Reaction score
16
Location
Rio de Janeiro
where can i change top menu layout?

optionsButton = modules.client_topmenu.addLeftButton('optionsButton', tr('Options'), '/images/topbuttons/options', toggle)

this add buttons to it, but they're all 16x16 and if you change its size, it's implements, but the background of it stays on 16x16 (in this case 26x26..)

Solution

Code:
  image-clip: 0 0 145 40 -- first is the inicial wildt // second is the inicial height
  $hover :
    image-clip: 0 40 145 40 -- third is the wildt size// fourth is the height size
  $pressed:
    image-clip: 0 80 145 40
 
Last edited:
tryed this, the size came to 32x32 but the image's are still being cut at 16x16.. :/

Code:
  CheckBox
    size: 32 32
    image-source: /images/ui/checkbox24
    id: rememberPasswordBox
    text-offset: 32 0
    !text: tr('Remember password')
    !tooltip: tr('Remember account and password when starts client')
    anchors.left: parent.left
    anchors.right: parent.horizontalCenter
    anchors.top: prev.bottom
    margin-top: 10
    @onCheckChange: self:getParent():getChildById('autoLoginBox'):setEnabled(self:isChecked())
    $!checked:
      image-clip: 0 0 24 24
 
Back
Top