• 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 Align NPC UI

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,470
Solutions
27
Reaction score
844
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
Hi! I need to ask, how can I align the NPC menu of OTClient? I'm using this mehah - Overview (https://github.com/mehah) and the items are a little out of aligment, I edited this image in photoshop, will explain better. If any file is requiered just reply, the NPC modules are the same that the github repository.

npc_menu.png

Regards!
 
Solution
Hi! I need to ask, how can I align the NPC menu of OTClient? I'm using this mehah - Overview (https://github.com/mehah) and the items are a little out of aligment, I edited this image in photoshop, will explain better. If any file is requiered just reply, the NPC modules are the same that the github repository.

View attachment 58930

Regards!
In game_npctrade/npctrade.otui


ScrollablePanel
id: itemsPanel
height: 250
anchors.left: parent.left
anchors.right: prev.left
anchors.top: parent.top
anchors.bottom: parent.bottom
vertical-scrollbar: itemsPanelListScrollBar
margin-left: 5
margin-right: 5
layout:
type: grid
cell-size: 160 90
flow: true...
Hi! I need to ask, how can I align the NPC menu of OTClient? I'm using this mehah - Overview (https://github.com/mehah) and the items are a little out of aligment, I edited this image in photoshop, will explain better. If any file is requiered just reply, the NPC modules are the same that the github repository.

View attachment 58930

Regards!
In game_npctrade/npctrade.otui


ScrollablePanel
id: itemsPanel
height: 250
anchors.left: parent.left
anchors.right: prev.left
anchors.top: parent.top
anchors.bottom: parent.bottom
vertical-scrollbar: itemsPanelListScrollBar
margin-left: 5
margin-right: 5
layout:
type: grid
cell-size: 160 90
flow: true
auto-spacing: true

Change the cell-size: 160 90 to 160 100.
Or experiment until you get the result you want.
 
Solution
In game_npctrade/npctrade.otui


ScrollablePanel
id: itemsPanel
height: 250
anchors.left: parent.left
anchors.right: prev.left
anchors.top: parent.top
anchors.bottom: parent.bottom
vertical-scrollbar: itemsPanelListScrollBar
margin-left: 5
margin-right: 5
layout:
type: grid
cell-size: 160 90
flow: true
auto-spacing: true

Change the cell-size: 160 90 to 160 100.
Or experiment until you get the result you want.
Ty! Changed to text-offset: 0 15 and works
 
Back
Top