compvis
21-09-2009 09:03:29
hi,
I try to change skin for pointer but i can't,
My skin is a png image with 200x200 pixels and core_pointer.xml like:
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Pointer">
<Pointer layer="Pointer" material="CrossPointer0" default="arrow">
<Info name="arrow" point="0 0" offset="0 0 200 200"/>
</Pointer>
</MyGUI>
And material file is:
material CrossPointer0
{
technique
{
pass
{
lighting off
scene_blend alpha_blend
depth_check off
texture_unit
{
texture CrossPointer0.png
}
}
}
}
And CrossPointer0.png file is:
What was i wrong ?
my.name
21-09-2009 11:15:38
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Pointer">
<Pointer layer="Pointer" texture="CrossPointer0.png" default="arrow">
<Info name="arrow" point="0 0" offset="0 0 200 200"/>
</Pointer>
</MyGUI>
compvis
21-09-2009 12:00:39
@my.name:
Thanks for reply but i am still not successful with your code, i try to test by put your code to Layout Editor's media then as a result, no cursor display !
Could you upload a demo that displays successfully a pointer skin custom ?
compvis
22-09-2009 11:43:15
version MyGUI
From "MyGUI_Prerequest.h" :
#define MYGUI_VERSION_MAJOR 2
#define MYGUI_VERSION_MINOR 3
#define MYGUI_VERSION_PATCH 0
compvis
22-09-2009 12:06:28
show me core_pointer.xml
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Pointer">
<Pointer layer="Pointer" texture="CrossPointer0.png" default="arrow">
<Info name="arrow" point="0 0" offset="0 0 200 200"/>
</Pointer>
</MyGUI>
my.name
22-09-2009 12:10:56
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Pointer">
<Pointer layer="Pointer" default="arrow">
<Info name="arrow" point="0 0" size="200 200" texture="CrossPointer0.png" offset="0 0 200 200"/>
</Pointer>
</MyGUI>
compvis
22-09-2009 12:19:06
Thank you so much
I have changed with your code but still nothing displays
My log in system log:
Added resource location '../../Media/MyGui/Themes' of type 'FileSystem' to resource group 'General'
18:16:12: Texture: core.png: Loading 1 faces(PF_A8R8G8B8,1024x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x256x1.
18:16:12: Texture: core_black_blue.png: Loading 1 faces(PF_A8R8G8B8,1024x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x256x1.
18:16:12: Texture: CrossPointer0.png: Loading 1 faces(PF_R8G8B8,200x200x1) with 0 generated mipmaps from Image. Internal format is PF_X8R8G8B8,200x200x1.
[/list:u]
And there is a warning i MyGUI log file
18:16:12 | General | Warning | pointer 'arrow' exist, erase old data | .\src\MyGUI_PointerManager.cpp | 99
Have you try to test pointer with my skin ?
my.name
22-09-2009 12:26:51
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Pointer">
<Pointer layer="Pointer" default="arrow2">
<Info name="arrow2" point="0 0" size="200 200" texture="CrossPointer0.png" offset="0 0 200 200"/>
</Pointer>
</MyGUI>
change to arrow2
compvis
22-09-2009 12:29:34
Very strange, i don't know why ?
18:29:48 | General | Warning | pointer 'arrow2' exist, erase old data | .\src\KlinkGUI_PointerManager.cpp | 99
Still nothing displays !!!
my.name
22-09-2009 12:31:43
and need move mouse or inject mouse move in gui system
compvis
22-09-2009 12:38:07
my.name !
This is MyGUI log file:
----------------------------------------------------------------------------------------------------------------------------------
loging report for : 09/22/2009 18:51:22
----------------------------------------------------------------------------------------------------------------------------------
18:51:22 | General | Info | * Initialise: Gui | .\src\MyGUI_Gui.cpp | 55
18:51:22 | General | Info | * MyGUI version 2.3.0 | .\src\MyGUI_Gui.cpp | 59
18:51:22 | General | Info | Viewport : 1440 900 | .\src\MyGUI_Gui.cpp | 69
18:51:22 | General | Info | * Initialise: ResourceManager | .\src\MyGUI_ResourceManager.cpp | 41
18:51:22 | General | Info | ResourceManager successfully initialized | .\src\MyGUI_ResourceManager.cpp | 53
18:51:22 | General | Info | * Initialise: LayerManager | .\src\MyGUI_LayerManager.cpp | 41
18:51:22 | General | Info | LayerManager successfully initialized | .\src\MyGUI_LayerManager.cpp | 73
18:51:22 | General | Info | * Initialise: WidgetManager | .\src\MyGUI_WidgetManager.cpp | 62
18:51:22 | General | Info | * Register widget factory 'Widget' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'Button' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'Window' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'List' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'HScroll' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'VScroll' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'Edit' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'ComboBox' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'StaticText' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'Tab' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'TabItem' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'TabItem' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'Sheet' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'Progress' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'ItemBox' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'MultiList' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'StaticImage' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'Message' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'RenderBox' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'MenuCtrl' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'MenuItem' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'PopupMenu' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'MenuBar' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'ScrollView' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'DDContainer' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | * Register widget factory 'Canvas' | .\src\MyGUI_WidgetManager.cpp | 118
18:51:22 | General | Info | WidgetManager successfully initialized | .\src\MyGUI_WidgetManager.cpp | 93
18:51:22 | General | Info | * Initialise: InputManager | .\src\MyGUI_InputManager.cpp | 51
18:51:22 | General | Info | InputManager successfully initialized | .\src\MyGUI_InputManager.cpp | 74
18:51:22 | General | Info | * Initialise: SubWidgetManager | .\src\MyGUI_SubWidgetManager.cpp | 33
18:51:22 | General | Info | SubWidgetManager successfully initialized | .\src\MyGUI_SubWidgetManager.cpp | 49
18:51:22 | General | Info | * Initialise: SkinManager | .\src\MyGUI_SkinManager.cpp | 40
18:51:22 | General | Info | SkinManager successfully initialized | .\src\MyGUI_SkinManager.cpp | 46
18:51:22 | General | Info | * Initialise: FontManager | .\src\MyGUI_FontManager.cpp | 43
18:51:22 | General | Info | FontManager successfully initialized | .\src\MyGUI_FontManager.cpp | 47
18:51:22 | General | Info | * Initialise: ControllerManager | .\src\MyGUI_ControllerManager.cpp | 36
18:51:22 | General | Info | ControllerManager successfully initialized | .\src\MyGUI_ControllerManager.cpp | 40
18:51:22 | General | Info | * Initialise: PointerManager | .\src\MyGUI_PointerManager.cpp | 41
18:51:22 | General | Info | PointerManager successfully initialized | .\src\MyGUI_PointerManager.cpp | 50
18:51:22 | General | Info | * Initialise: ClipboardManager | .\src\MyGUI_ClipboardManager.cpp | 35
18:51:22 | General | Info | ClipboardManager successfully initialized | .\src\MyGUI_ClipboardManager.cpp | 44
18:51:22 | General | Info | * Initialise: LayoutManager | .\src\MyGUI_LayoutManager.cpp | 41
18:51:22 | General | Info | LayoutManager successfully initialized | .\src\MyGUI_LayoutManager.cpp | 47
18:51:22 | General | Info | * Initialise: DynLibManager | .\src\MyGUI_DynLibManager.cpp | 34
18:51:22 | General | Info | DynLibManager successfully initialized | .\src\MyGUI_DynLibManager.cpp | 36
18:51:22 | General | Info | * Initialise: PluginManager | .\src\MyGUI_PluginManager.cpp | 36
18:51:22 | General | Info | PluginManager successfully initialized | .\src\MyGUI_PluginManager.cpp | 40
18:51:22 | General | Info | * Initialise: DelegateManager | .\src\MyGUI_DelegateManager.cpp | 33
18:51:22 | General | Info | DelegateManager successfully initialized | .\src\MyGUI_DelegateManager.cpp | 37
18:51:22 | General | Info | * Initialise: LanguageManager | .\src\MyGUI_LanguageManager.cpp | 37
18:51:22 | General | Info | LanguageManager successfully initialized | .\src\MyGUI_LanguageManager.cpp | 44
18:51:22 | General | Info | Load ini file 'core_location.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:22 | General | Info | Load ini file 'core_keyboard.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:22 | General | Info | Load ini file 'core_language.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:22 | General | Info | Load ini file 'core_layer.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:22 | General | Info | Load ini file 'core_font.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:22 | General | Info | Load ini file 'core_theme_black_blue.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:22 | General | Info | Load ini file 'core_resource.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:22 | General | Info | Load ini file 'core_skin.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:23 | General | Info | Load ini file 'core_pointer.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
18:51:23 | General | Info | Gui successfully initialized | .\src\MyGUI_Gui.cpp | 115
18:51:24 | General | Info | Font 'Default' using texture size 1024 x 256 | .\src\MyGUI_Font.cpp | 205
18:51:24 | General | Info | Font 'Default' using real height 18 pixels | .\src\MyGUI_Font.cpp | 206
18:51:38 | General | Info | * Shutdown: Gui | .\src\MyGUI_Gui.cpp | 122
18:51:38 | General | Info | * Shutdown: PointerManager | .\src\MyGUI_PointerManager.cpp | 57
18:51:38 | General | Info | PointerManager successfully shutdown | .\src\MyGUI_PointerManager.cpp | 67
18:51:38 | General | Info | * Shutdown: InputManager | .\src\MyGUI_InputManager.cpp | 81
18:51:38 | General | Info | InputManager successfully shutdown | .\src\MyGUI_InputManager.cpp | 87
18:51:38 | General | Info | * Shutdown: SkinManager | .\src\MyGUI_SkinManager.cpp | 53
18:51:38 | General | Info | SkinManager successfully shutdown | .\src\MyGUI_SkinManager.cpp | 64
18:51:38 | General | Info | * Shutdown: SubWidgetManager | .\src\MyGUI_SubWidgetManager.cpp | 56
18:51:38 | General | Info | SubWidgetManager successfully shutdown | .\src\MyGUI_SubWidgetManager.cpp | 67
18:51:38 | General | Info | * Shutdown: LayerManager | .\src\MyGUI_LayerManager.cpp | 80
18:51:38 | General | Info | destroy layer 'Back' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Overlapped' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Middle' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Modal' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Main' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Popup' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'FadeMiddle' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Info' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'ToolTip' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'DragAndDrop' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'FadeBusy' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Pointer' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Fade' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | destroy layer 'Statistic' | .\src\MyGUI_LayerManager.cpp | 292
18:51:38 | General | Info | LayerManager successfully shutdown | .\src\MyGUI_LayerManager.cpp | 96
18:51:38 | General | Info | * Shutdown: FontManager | .\src\MyGUI_FontManager.cpp | 54
18:51:38 | General | Info | FontManager successfully shutdown | .\src\MyGUI_FontManager.cpp | 58
18:51:38 | General | Info | * Shutdown: ControllerManager | .\src\MyGUI_ControllerManager.cpp | 47
18:51:38 | General | Info | ControllerManager successfully shutdown | .\src\MyGUI_ControllerManager.cpp | 52
18:51:38 | General | Info | * Shutdown: ClipboardManager | .\src\MyGUI_ClipboardManager.cpp | 51
18:51:38 | General | Info | ClipboardManager successfully shutdown | .\src\MyGUI_ClipboardManager.cpp | 53
18:51:38 | General | Info | * Shutdown: LayoutManager | .\src\MyGUI_LayoutManager.cpp | 54
18:51:38 | General | Info | LayoutManager successfully shutdown | .\src\MyGUI_LayoutManager.cpp | 58
18:51:38 | General | Info | * Shutdown: PluginManager | .\src\MyGUI_PluginManager.cpp | 47
18:51:38 | General | Info | PluginManager successfully shutdown | .\src\MyGUI_PluginManager.cpp | 52
18:51:38 | General | Info | * Shutdown: DynLibManager | .\src\MyGUI_DynLibManager.cpp | 43
18:51:38 | General | Info | DynLibManager successfully shutdown | .\src\MyGUI_DynLibManager.cpp | 57
18:51:38 | General | Info | * Shutdown: DelegateManager | .\src\MyGUI_DelegateManager.cpp | 44
18:51:38 | General | Info | DelegateManager successfully shutdown | .\src\MyGUI_DelegateManager.cpp | 48
18:51:38 | General | Info | * Shutdown: LanguageManager | .\src\MyGUI_LanguageManager.cpp | 51
18:51:38 | General | Info | LanguageManager successfully shutdown | .\src\MyGUI_LanguageManager.cpp | 55
18:51:38 | General | Info | * Shutdown: ResourceManager | .\src\MyGUI_ResourceManager.cpp | 60
18:51:38 | General | Info | ResourceManager successfully shutdown | .\src\MyGUI_ResourceManager.cpp | 71
18:51:38 | General | Info | * Shutdown: WidgetManager | .\src\MyGUI_WidgetManager.cpp | 100
18:51:38 | General | Info | * Unregister widget factory 'Tab' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'List' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'HScroll' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'Edit' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'ComboBox' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'Window' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'VScroll' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'TabItem' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'Widget' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'Button' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'StaticText' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'MultiList' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'StaticImage' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'Message' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'RenderBox' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'MenuBar' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'ScrollView' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'DDContainer' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'Canvas' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'Progress' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'ItemBox' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'MenuCtrl' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'MenuItem' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | * Unregister widget factory 'PopupMenu' | .\src\MyGUI_WidgetManager.cpp | 125
18:51:38 | General | Info | WidgetManager successfully shutdown | .\src\MyGUI_WidgetManager.cpp | 111
18:51:38 | General | Info | Gui successfully shutdown | .\src\MyGUI_Gui.cpp | 167
And log in System log:
18:51:22: Klink® 3D Simulations: - Initializing Klink Gui ...
18:51:22: Added resource location '../../Media/MyGui/Themes' of type 'FileSystem' to resource group 'General'
18:51:22: Texture: core.png: Loading 1 faces(PF_A8R8G8B8,1024x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x256x1.
18:51:23: Texture: core_black_blue.png: Loading 1 faces(PF_A8R8G8B8,1024x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x256x1.
18:51:23: Texture: CrossPointer0.png: Loading 1 faces(PF_R8G8B8,200x200x1) with 0 generated mipmaps from Image. Internal format is PF_X8R8G8B8,200x200x1.
18:51:23: Klink® 3D Simulations: - Initializing Klink Gui successfully !!!
And code to init MyGui system:
m_Gui = new MyGUI::Gui();
if (!m_Gui)
{
m_Log->logMessage("Klink® 3D Simulations: - Initializing Klink Gui not successfully <?>");
m_Log->logMessage("------------------------------------------------------------------------------------------------------------------------------");
return E_GUI;
}
else
{
m_Gui->initialise(m_Render);
}
compvis
22-09-2009 12:55:14
@my.name:
Pls try with my pointer skin file !
This is a problem with MyGUI 2.3.0 ?
my.name
22-09-2009 13:03:05
MyGUI::InputManager::getInstance().injectMouseMove(1, 1, 1);
compvis
22-09-2009 13:08:38
Nothing better, it appears that the library misses somethings ?
In mouseMoved:
K_CHECK Core::mouseMoved(const OIS::MouseEvent &e)
{
if (m_Gui)
{
m_Gui->injectMouseMove(e);
}
return true;
}
my.name
22-09-2009 13:43:57
ok. do you show original pointers?
compvis
23-09-2009 04:30:35
ok. do you show original pointers?
yes, with default core_pointer.xml, all things in good
@my.name: could you upload a sample which uses my pointer skin ?
compvis
09-10-2009 04:26:36
MyGUI team !
Please upload a sample which use my own pointer skin !
Thanks
compvis
09-10-2009 07:37:51
Thank you ! i am waiting for a long time ...
Pls...
my.name
09-10-2009 09:40:09
=)
update from svn - 2.2.3 version - 2332 revision
change 'core_pointer.xml'
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Pointer">
<Pointer layer="Pointer" default="arrow">
<Info name="arrow" point="16 16" size="32 32" texture="CrossPointer.png" offset="0 0 200 200"/>
<Info name="beam" point="16 16" size="32 32" resource="pic_CorePointerBeam"/>
<Info name="size_left" point="16 16" size="32 32" resource="pic_CorePointerSizeLeft"/>
<Info name="size_right" point="16 16" size="32 32" resource="pic_CorePointerSizeRight"/>
<Info name="size_horz" point="16 16" size="32 32" resource="pic_CorePointerSizeHorz"/>
<Info name="size_vert" point="16 16" size="32 32" resource="pic_CorePointerSizeVert"/>
<Info name="hand" point="16 16" size="32 32" resource="pic_CorePointerHand"/>
</Pointer>
</MyGUI>
and convert image to 32bit format
compvis
09-10-2009 10:27:50
Awesome, thank you for updated !
Best wishes for you ! my.name