With Irrlicht 1.8.0-alpha the ToolTip font are changed only.
I don't know, is it a bug or a new "feature" ?
Is enum EGDF_BUTTON are ignored or removed from 1.8.0-alpha ?
Don't worry about the code it's a new language binding
However it works with 1.7.3 so it must be a problem with the 1.8.0-alpha branch
- Code: Select all
dim Device as IrrlichtDevice = CreateDevice()
dim Driver as IVideoDriver = DeviceGetVideoDriver(Device)
dim GUIEnv as IGUIEnvironment = DeviceGetGUIEnvironment(Device)
dim GUISkin as IGUISkin = GUIEnvironmentGetSkin(GUIEnv)
dim NoParent as IGUIElement ' is NULL !
dim Button as IGUIButton = GUIEnvironmentAddButton(GUIEnv,10,30,50,50,NoParent,1,"Text","ToolTip")
dim GUIFont as IGUIFont = GUIEnvironmentGetFont(GUIEnv,"media/system12.xml")
' replace the default gui skin font for Button and ToolTip
GUISkinSetFont(GUISkin,GUIFont,EGDF_BUTTON) ' !!! <--- ignored in Irrlicht 1.8.0-alpha
if DeviceIsWindowActive(Device) then
if IsKeyDown(KEY_ESCAPE) then