OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: MyGUI layers
View page
Source of version: 6
(current)
MyGUI 3.0+ description. MyGUI layers is order of widgets rendering. First layer in list is lowest (i.e. renders behind other layers). Default config file for layers is __core_layer.xml__ (or __MyGUI_Layers.xml__ for 3.2.0+). Main properties are: * type: layer type, here are built-in types ** __SharedLayer__ : Simple layer without overlapping. Overlapping widgets may be drawn in incorrect order on it. Whole SharedLayer renders in one batch; ** __OverlappedLayer__ : When you have overlapping widgets on one layer (for example windows) you should use such layer. Batch per root widget, so if you widgets on layer not intended to overlap each other use SharedLayer; ** ''other types'': it is also possible to add your own types (see UnitTest_Layers for RTTLayer example). * name: layer name identifier used in skins, layouts and in code. * properties: ** __Pick__ boolean: this sets widgets possibility to interact with mouse, if this property set to false mouse pointer will ignore widgets for all cases (so you won't be able to click on Button and so on and you also can click "through" it if there's something behind). ** ''other properties'': it is also possible to add your own properties (see UnitTest_Layers for RTTLayer layer custom properties). Here's short example: {CODE(wrap="1", colors="xml")}<?xml version="1.0" encoding="UTF-8"?> <MyGUI type="Layer" version="1.2"> <!-- (Pick false) here's unpickable layer that basically used only for displaying background image and not for any interaction --> <Layer type="SharedLayer" name="Wallpaper"> <Property key="Pick" value="false"/> </Layer> <!-- (type SharedLayer) Main layer - usually used for most GUI items that won't be moved in runtime --> <Layer type="SharedLayer" name="Main"> <Property key="Pick" value="true"/> </Layer> <!-- (type OverlappedLayer) Overlapped layer - usually used for windows, pop-up messages and hints --> <Layer type="OverlappedLayer" name="Overlapped"> <Property key="Pick" value="true"/> </Layer> <!-- (name Pointer, Pick false) Pointer layer - mouse pointer drawn here, don't forget set Pick to false --> <Layer type="SharedLayer" name="Pointer"> <Property key="Pick" value="false"/> </Layer> </MyGUI>{CODE} You can change core_layer.xml in any way you want. For example you can add layers, delete any or set pointer on Back skin or anywhere you want :) If you deleting some layers you should replace them to other in skin and pointer files (if used). There are few places where they used in default MyGUI_Media: *Layer "Pointer" for pointer in core_settings.xml *Some widgets skins in core_skin.xml : **ItemBox drag'n'drop layer **ComboBox dropdown list layer **Message layer **MenuBar and Popup submenus layer
Search by Tags
Search Wiki by Freetags
Latest Changes
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
...more
Search
Find
Advanced
Search Help
Online Users
95 online users