Life is Feudal: Forest Village

Life is Feudal: Forest Village

Forest Village Workshop
Forest Village hub of user generated mods, maps and scenarios.
了解更多
Snacko 2018 年 6 月 29 日 上午 11:45
Help just moving the Toolbar?
I have a triple screen setup, and am simply trying to move the bottom/right toolbar near the center. I change this line of code from HA_RIGHT to HA_LEFT just for a test to see if it moves and if this is the correct object that I need.

fv.core.GameMenu:setHorizontalAlignment(CEGUI.HA_LEFT)

I found this GameMenu object in "\scripts\gui\GameMenu\GameMenu.lua". And I am not quite sure how I should reference this object and it's setHorizontalAlignment funciton or if it has other X, Y position properties can use.

I was also not sure if I should be including everything in the Scripts folder, or if I should just use the part of the code that I need, or what..

Any Help or guidance is appreciated to just get me started in the right direction.

Thanks. :steamhappy:
< >
正在显示第 1 - 2 条,共 2 条留言
dominuskevin 3 2018 年 6 月 29 日 下午 12:55 
You have to load the function itself with the change you wish to make.


local GameMenu = fv.core.GameMenu function GameMenu:init(selectedGroup) GameMenu.base.init(self) self:setName("GameMenu") self:setClippedByParent(false) self:setAlwaysOnTop(true) self:setVerticalAlignment(CEGUI.VA_BOTTOM) self:setHorizontalAlignment(CEGUI.HA_LEFT) self:setArea(absdim(0), absdim(0), absdim(0), absdim(0)) self.panels = {} self:refreshNodeStates() local model = {childs = {{ name = 'main', icon = 'GameLook1/iconMenuShow', selectedIcon = 'GameLook1/iconMenuHide', childs = GameMenu.model.root.childs }}} self:initPanel('root', model) self.selectedGroup = selectedGroup or 'root.main' self:refreshGroupStates(true) end
Snacko 2018 年 6 月 29 日 下午 1:50 
Thanks, that got the code working. Now I need to figure out how to move it to the center. There appears to be no CEGUI.HA_CENTER parameter. So, I am trying to find another property of the container to move it. Trial and error I guess?
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50