local chatContainer = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="Chat container"}) chatContainer.header = Geyser.HBox:new({ name = "chatContainer.header", x = 0, y = "0%", width = "25.65%", height = "6%", }, chatContainer) chat = Geyser.MiniConsole:new({ name = "chat", x = ".5%", y = "0.5%", -- edit here if you want to move it width = "25%", height = "50%" }) chatContainer.title = Geyser.Label:new({ name = "chatContainer.title", x = "0%", y = "0%", width = "25%", height = "6%", fontsize = 10, }, chatContainer.header) chatContainer.title: setFgColor("white") chatContainer.title:setStyleSheet[[ border-image: url(C:/MudletGFX/imgLabel.png); ]] chatContainer.footer = Geyser.Label:new({ name = "chatContainer.footer", x = 0, y = "50%", height = "6%", width = "25.65%", }, chatContainer.container) chatContainer.footer:setStyleSheet[[ border-image: url(C:/MudletGFX/imgLabel2.png); ]] setWindowWrap("chat", 42) setMiniConsoleFontSize("chat", 10)
Comments
chatContainer.title:setStyleSheet[[
and similar for the footer one.
That's all that jumps out at me; if that's not it, it would be useful to post any error messages you get in the script editor's error window.
Should all be changed to:
- border-image:url([[C:/MudletGFX/imgLabel.png]])
- chat:setWrap(42)
- chat:setFontSize(10)
Geyser uses its own commands for setting stuff like that, the way you used it is for using Mudlet's old MiniConsole creation.@Deladan, what did you change between last night when it was working and now?
Also, chatContainer.header has a height of 6%, which should make it 6% of the height of chatContainer, and then chatContainer.title, which is defined within chatContainer.header, and has a height of 6% of that, so the height of the label is only going to be about .4% of your main container size. If you want the label to take up the full height of the HBox containing it, make its height "100%":
Alternately, if you're not putting anything else in that HBox, and just want the label to be at the top left of the main chat container, with width,height =25%,6% of that container, just get rid of chatContainer.header entirely and define chatContainer.title as: