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
DJ.
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
GUISkinSetFont(GUISkin,GUIFont,EGDF_TOOLTIP)
DeviceSetWindowCaption(Device,"GUIFont")
while DeviceRun(Device)
if DeviceIsWindowActive(Device) then
VideoDriverBeginScene(Driver,128,128,128)
' SceneMangerDrawAll(Scene)
GUIEnvironmentDrawAll(GUIEnv)
VideoDriverEndScene(Driver)
endif
if IsKeyDown(KEY_ESCAPE) then
DeviceCloseDevice(Device)
endif
DeviceSleep(Device,20)
wend
DeviceDrop(Device)