Demonnic Chat + Geyser Template UI

Share your scripts and packages with other Mudlet users.
Post Reply
spoofmanbob
Posts: 9
Joined: Sat Oct 25, 2014 4:49 am

Demonnic Chat + Geyser Template UI

Post by spoofmanbob »

I'm trying to adopt the demonnic chat to the wonderful geyser template ui. But I cant quite get it to fit.

Here is a picture: Image

I modified the Demonnic code in these two places but am not that good with scripting yet to get it the other 10% of the way to the finish line.
Code: [show] | [select all] lua
function demonnic.chat:resetUI()
  demonnic.chat.container = Geyser.Container:new(demonnic.chatdemonnic.chat.config.location]())
  demonnic.chat.tabBox = Geyser.HBox:new({
    x=0,
    y=0,
    width = "100%",
    height = "25px",
    name = "DemonChatTabs",
--  },demonnic.chat.container)
	},[b]GUI.Box2[/b])
end
Code: [show] | [select all] lua
function demonnic.chat:resetUI()
  demonnic.chat.container = Geyser.Container:new(demonnic.chat[demonnic.chat.config.location]())
  demonnic.chat.tabBox = Geyser.HBox:new({
    x=0,
    y=0,
    width = "100%",
    height = "20px",
    name = "DemonChatTabs",
  },[b]GUI.Box2[/b])
end

User avatar
Akaya
Posts: 414
Joined: Thu Apr 19, 2012 1:36 am

Re: Demonnic Chat + Geyser Template UI

Post by Akaya »

Assuming demonnic.chat.container is the container for the entire chat window... place demonnic.chat.container inside GUI.Box2.

You could also make a label. Give it a transparent background-color and a margin. Place it in GUI.Box2. Then place demonnic.chat.container within that label. The margin will allow you to still see the GUI.Box2 border.

phasma
Posts: 191
Joined: Sat Aug 03, 2013 7:00 pm
Discord: phasma#4694

Re: Demonnic Chat + Geyser Template UI

Post by phasma »

The positioning and relative values required are hardcoded. Just create a container to hold everything based on %. Easiest way.

Post Reply