OTClient Align NPC UI

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
784
Solutions
18
Reaction score
324
Location
Santiago - Chile
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...

Pox

Well-Known Member
Joined
Apr 28, 2020
Messages
126
Solutions
7
Reaction score
88
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
OP
ralke

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
784
Solutions
18
Reaction score
324
Location
Santiago - Chile
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
 
Top