[Orxonox-commit 1645] r6363 - in code/branches/presentation2: data/gui/layouts data/gui/scripts data/levels data/levels/includes data/levels/templates data/particle src/libraries/network/synchronisable
rgrieder at orxonox.net
rgrieder at orxonox.net
Wed Dec 16 21:41:33 CET 2009
Author: rgrieder
Date: 2009-12-16 21:41:33 +0100 (Wed, 16 Dec 2009)
New Revision: 6363
Modified:
code/branches/presentation2/data/gui/layouts/AudioMenu.layout
code/branches/presentation2/data/gui/layouts/ControlsMenu.layout
code/branches/presentation2/data/gui/layouts/CreditsMenu.layout
code/branches/presentation2/data/gui/layouts/DecisionPopup.layout
code/branches/presentation2/data/gui/layouts/GameplayMenu.layout
code/branches/presentation2/data/gui/layouts/GraphicsMenu.layout
code/branches/presentation2/data/gui/layouts/InGameMenu.layout
code/branches/presentation2/data/gui/layouts/InfoPopup.layout
code/branches/presentation2/data/gui/layouts/KeyBindMenu.layout
code/branches/presentation2/data/gui/layouts/MainMenuBackground.layout
code/branches/presentation2/data/gui/layouts/MouseControlsMenu.layout
code/branches/presentation2/data/gui/layouts/MultiplayerMenu.layout
code/branches/presentation2/data/gui/layouts/MultiplayerOptionsMenu.layout
code/branches/presentation2/data/gui/layouts/SettingsMenu.layout
code/branches/presentation2/data/gui/layouts/SingleplayerMenu.layout
code/branches/presentation2/data/gui/scripts/AudioMenu.lua
code/branches/presentation2/data/gui/scripts/ControlsMenu.lua
code/branches/presentation2/data/gui/scripts/CreditsMenu.lua
code/branches/presentation2/data/gui/scripts/DecisionPopup.lua
code/branches/presentation2/data/gui/scripts/GUITools.lua
code/branches/presentation2/data/gui/scripts/GameplayMenu.lua
code/branches/presentation2/data/gui/scripts/GraphicsMenu.lua
code/branches/presentation2/data/gui/scripts/InGameMenu.lua
code/branches/presentation2/data/gui/scripts/InfoPopup.lua
code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua
code/branches/presentation2/data/gui/scripts/MultiplayerMenu.lua
code/branches/presentation2/data/gui/scripts/MultiplayerOptionsMenu.lua
code/branches/presentation2/data/gui/scripts/SettingsMenu.lua
code/branches/presentation2/data/gui/scripts/SingleplayerMenu.lua
code/branches/presentation2/data/levels/includes/weaponsettings_HXY.oxi
code/branches/presentation2/data/levels/includes/weaponsettings_Transporter.oxi
code/branches/presentation2/data/levels/presentationHS09.oxw
code/branches/presentation2/data/levels/presentationHS09b.oxw
code/branches/presentation2/data/levels/templates/spaceship_HXY.oxt
code/branches/presentation2/data/levels/templates/spaceship_HXY_SL.oxt
code/branches/presentation2/data/levels/templates/spaceship_Transporter.oxt
code/branches/presentation2/data/levels/templates/spaceship_Transporter_SL.oxt
code/branches/presentation2/data/particle/Steam.particle
code/branches/presentation2/src/libraries/network/synchronisable/Serialise.h
Log:
svn:eol-style "native" for all text files.
Also removed two executable properties (whatever they lost in these files ^^).
Modified: code/branches/presentation2/data/gui/layouts/AudioMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/AudioMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/AudioMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,130 +1,130 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/AudioBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/AudioWindow" >
- <Property Name="Text" Value="Audio" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.2,0},{0.2875,0},{0.8,0},{0.6375,0}}" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/MasterVolume" >
- <Property Name="Text" Value="Master volume " />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.041666,0},{0.15,0},{0.5625,0},{0.3525,0}}" />
- <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/MasterScrollbar" >
- <Property Name="PageSize" Value="0" />
- <Property Name="StepSize" Value="1" />
- <Property Name="OverlapSize" Value="0" />
- <Property Name="DocumentSize" Value="1" />
- <Property Name="ScrollPosition" Value="0" />
- <Property Name="StepSize" Value="0.1" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.04,0},{0.6,0},{0.71,0},{0.8,0}}" />
- <Event Name="ThumbTrackStarted" Function="AudioMenu.AudioMasterScrollbar_started" />
- <Event Name="ThumbTrackEnded" Function="AudioMenu.AudioMasterScrollbar_ended" />
- <Event Name="ScrollPosChanged" Function="AudioMenu.AudioMasterScrollbar_changed" />
- </Window>
- <Window Type="TaharezLook/Checkbox" Name="orxonox/MasterCheckbox" >
- <Property Name="Text" Value="Mute" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.775,0},{0.45,0},{0.96,0},{0.9,0}}" />
- <Event Name="CheckStateChanged" Function="AudioMenu.AudioMuteMasterCheckbox_clicked"/>
- </Window>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/MusicVolume" >
- <Property Name="Text" Value="Music volume " />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.041666,0},{0.4335,0},{0.5625,0},{0.636,0}}" />
- <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/MusicScrollbar" >
- <Property Name="PageSize" Value="0" />
- <Property Name="StepSize" Value="1" />
- <Property Name="OverlapSize" Value="0" />
- <Property Name="DocumentSize" Value="1" />
- <Property Name="ScrollPosition" Value="0" />
- <Property Name="StepSize" Value="0.1" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.04,0},{0.6,0},{0.71,0},{0.8,0}}" />
- <Event Name="ThumbTrackStarted" Function="AudioMenu.AudioMusicScrollbar_started" />
- <Event Name="ThumbTrackEnded" Function="AudioMenu.AudioMusicScrollbar_ended" />
- <Event Name="ScrollPosChanged" Function="AudioMenu.AudioMusicScrollbar_changed" />
- </Window>
- <Window Type="TaharezLook/Checkbox" Name="orxonox/MusicCheckbox" >
- <Property Name="Text" Value="Mute" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.775,0},{0.45,0},{0.96,0},{0.9,0}}" />
- <Event Name="CheckStateChanged" Function="AudioMenu.AudioMuteMusicCheckbox_clicked"/>
- </Window>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/EffectsVolume" >
- <Property Name="Text" Value="Effects volume " />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.041666,0},{0.717,0},{0.5625,0},{0.9195,0}}" />
- <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/EffectsScrollbar" >
- <Property Name="PageSize" Value="0" />
- <Property Name="StepSize" Value="1" />
- <Property Name="OverlapSize" Value="0" />
- <Property Name="DocumentSize" Value="1" />
- <Property Name="ScrollPosition" Value="0" />
- <Property Name="StepSize" Value="0.1" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.04,0},{0.6,0},{0.71,0},{0.8,0}}" />
- <Event Name="ThumbTrackStarted" Function="AudioMenu.AudioEffectsScrollbar_started" />
- <Event Name="ThumbTrackEnded" Function="AudioMenu.AudioEffectsScrollbar_ended" />
- <Event Name="ScrollPosChanged" Function="AudioMenu.AudioEffectsScrollbar_changed" />
- </Window>
- <Window Type="TaharezLook/Checkbox" Name="orxonox/EffectsCheckbox" >
- <Property Name="Text" Value="Mute" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.775,0},{0.45,0},{0.96,0},{0.9,0}}" />
- <Event Name="CheckStateChanged" Function="AudioMenu.AudioMuteEffectsCheckbox_clicked"/>
- </Window>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/AudioTheme" >
- <Property Name="Text" Value="Theme" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.604166,0},{0.15,0},{0.958333,0},{0.636,0}}" />
- <Window Type="TaharezLook/Listbox" Name="orxonox/AudioThemeListbox" >
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.225,0},{0.95,0},{0.92,0}}" />
- <Event Name="ItemSelectionChanged" Function="AudioMenu.AudioThemeListbox_changed" />
- </Window>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/AudioInfo" >
- <Property Name="Text" >Theme changes require
-a game restart.</Property>
- <Property Name="TextColours" Value="FF4444FF" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.604166,0},{0.717,0},{0.958333,0},{0.9195,0}}" />
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/AudioBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="AudioMenu.AudioBackButton_clicked" />
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/AudioBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/AudioWindow" >
+ <Property Name="Text" Value="Audio" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.2,0},{0.2875,0},{0.8,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/MasterVolume" >
+ <Property Name="Text" Value="Master volume " />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.041666,0},{0.15,0},{0.5625,0},{0.3525,0}}" />
+ <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/MasterScrollbar" >
+ <Property Name="PageSize" Value="0" />
+ <Property Name="StepSize" Value="1" />
+ <Property Name="OverlapSize" Value="0" />
+ <Property Name="DocumentSize" Value="1" />
+ <Property Name="ScrollPosition" Value="0" />
+ <Property Name="StepSize" Value="0.1" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.04,0},{0.6,0},{0.71,0},{0.8,0}}" />
+ <Event Name="ThumbTrackStarted" Function="AudioMenu.AudioMasterScrollbar_started" />
+ <Event Name="ThumbTrackEnded" Function="AudioMenu.AudioMasterScrollbar_ended" />
+ <Event Name="ScrollPosChanged" Function="AudioMenu.AudioMasterScrollbar_changed" />
+ </Window>
+ <Window Type="TaharezLook/Checkbox" Name="orxonox/MasterCheckbox" >
+ <Property Name="Text" Value="Mute" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.775,0},{0.45,0},{0.96,0},{0.9,0}}" />
+ <Event Name="CheckStateChanged" Function="AudioMenu.AudioMuteMasterCheckbox_clicked"/>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/MusicVolume" >
+ <Property Name="Text" Value="Music volume " />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.041666,0},{0.4335,0},{0.5625,0},{0.636,0}}" />
+ <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/MusicScrollbar" >
+ <Property Name="PageSize" Value="0" />
+ <Property Name="StepSize" Value="1" />
+ <Property Name="OverlapSize" Value="0" />
+ <Property Name="DocumentSize" Value="1" />
+ <Property Name="ScrollPosition" Value="0" />
+ <Property Name="StepSize" Value="0.1" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.04,0},{0.6,0},{0.71,0},{0.8,0}}" />
+ <Event Name="ThumbTrackStarted" Function="AudioMenu.AudioMusicScrollbar_started" />
+ <Event Name="ThumbTrackEnded" Function="AudioMenu.AudioMusicScrollbar_ended" />
+ <Event Name="ScrollPosChanged" Function="AudioMenu.AudioMusicScrollbar_changed" />
+ </Window>
+ <Window Type="TaharezLook/Checkbox" Name="orxonox/MusicCheckbox" >
+ <Property Name="Text" Value="Mute" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.775,0},{0.45,0},{0.96,0},{0.9,0}}" />
+ <Event Name="CheckStateChanged" Function="AudioMenu.AudioMuteMusicCheckbox_clicked"/>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/EffectsVolume" >
+ <Property Name="Text" Value="Effects volume " />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.041666,0},{0.717,0},{0.5625,0},{0.9195,0}}" />
+ <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/EffectsScrollbar" >
+ <Property Name="PageSize" Value="0" />
+ <Property Name="StepSize" Value="1" />
+ <Property Name="OverlapSize" Value="0" />
+ <Property Name="DocumentSize" Value="1" />
+ <Property Name="ScrollPosition" Value="0" />
+ <Property Name="StepSize" Value="0.1" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.04,0},{0.6,0},{0.71,0},{0.8,0}}" />
+ <Event Name="ThumbTrackStarted" Function="AudioMenu.AudioEffectsScrollbar_started" />
+ <Event Name="ThumbTrackEnded" Function="AudioMenu.AudioEffectsScrollbar_ended" />
+ <Event Name="ScrollPosChanged" Function="AudioMenu.AudioEffectsScrollbar_changed" />
+ </Window>
+ <Window Type="TaharezLook/Checkbox" Name="orxonox/EffectsCheckbox" >
+ <Property Name="Text" Value="Mute" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.775,0},{0.45,0},{0.96,0},{0.9,0}}" />
+ <Event Name="CheckStateChanged" Function="AudioMenu.AudioMuteEffectsCheckbox_clicked"/>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/AudioTheme" >
+ <Property Name="Text" Value="Theme" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.604166,0},{0.15,0},{0.958333,0},{0.636,0}}" />
+ <Window Type="TaharezLook/Listbox" Name="orxonox/AudioThemeListbox" >
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.225,0},{0.95,0},{0.92,0}}" />
+ <Event Name="ItemSelectionChanged" Function="AudioMenu.AudioThemeListbox_changed" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/AudioInfo" >
+ <Property Name="Text" >Theme changes require
+a game restart.</Property>
+ <Property Name="TextColours" Value="FF4444FF" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.604166,0},{0.717,0},{0.958333,0},{0.9195,0}}" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/AudioBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="AudioMenu.AudioBackButton_clicked" />
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/AudioMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/ControlsMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/ControlsMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/ControlsMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,38 +1,38 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/ControlsBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/ControlsWindow" >
- <Property Name="Text" Value="Controls" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
- <Window Type="TaharezLook/Button" Name="orxonox/MouseControlsButton" >
- <Property Name="Text" Value="Mouse controls" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.3,0},{0.318181,0},{0.7,0},{0.5,0}}" />
- <Event Name="Clicked" Function="ControlsMenu.ControlsMouseControlsButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/KeybindingsButton" >
- <Property Name="Text" Value="Keybindings" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.3,0},{0.590909,0},{0.7,0},{0.772727,0}}" />
- <Event Name="Clicked" Function="ControlsMenu.ControlsKeyboardControlsButton_clicked"/>
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/ControlsBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="ControlsMenu.ControlsBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/ControlsBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/ControlsWindow" >
+ <Property Name="Text" Value="Controls" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/Button" Name="orxonox/MouseControlsButton" >
+ <Property Name="Text" Value="Mouse controls" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.3,0},{0.318181,0},{0.7,0},{0.5,0}}" />
+ <Event Name="Clicked" Function="ControlsMenu.ControlsMouseControlsButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/KeybindingsButton" >
+ <Property Name="Text" Value="Keybindings" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.3,0},{0.590909,0},{0.7,0},{0.772727,0}}" />
+ <Event Name="Clicked" Function="ControlsMenu.ControlsKeyboardControlsButton_clicked"/>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/ControlsBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="ControlsMenu.ControlsBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/ControlsMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/CreditsMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/CreditsMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/CreditsMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,41 +1,41 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/CreditsBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/CreditsWindow" >
- <Property Name="Text" Value="Credits" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/CreditsText" >
- <Property Name="Text">Orxonox version 0.0.3
-
-Programming Language: C++ - lua - tcl
-Environment: OpenAL - Ogre - OIS - CEGUI - enet - ODE
-Licence: GNU General Public Licence - Creative Commons
-
-http://www.orxonox.net</Property>
- <Property Name="TextColours" Value="FF4444FF" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.2,0},{0.95,0},{0.9,0}}" />
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/CreditsBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="CreditsMenu.CreditsBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/CreditsBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/CreditsWindow" >
+ <Property Name="Text" Value="Credits" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/CreditsText" >
+ <Property Name="Text">Orxonox version 0.0.3
+
+Programming Language: C++ - lua - tcl
+Environment: OpenAL - Ogre - OIS - CEGUI - enet - ODE
+Licence: GNU General Public Licence - Creative Commons
+
+http://www.orxonox.net</Property>
+ <Property Name="TextColours" Value="FF4444FF" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.2,0},{0.95,0},{0.9,0}}" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/CreditsBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="CreditsMenu.CreditsBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/CreditsMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Property changes on: code/branches/presentation2/data/gui/layouts/DecisionPopup.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/GameplayMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/GameplayMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/GameplayMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,68 +1,68 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/GameplayBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/GameplayWindow" >
- <Property Name="Text" Value="Gameplay" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/Difficulty" >
- <Property Name="Text" Value="Difficulty" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.2,0},{0.475,0},{0.9,0}}" />
- <Window Type="TaharezLook/RadioButton" Name="orxonox/DifficultyEasyButton" >
- <Property Name="Text" Value="Easy" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.325,0},{0.325,0},{0.675,0},{0.45,0}}" />
- <Event Name="SelectStateChanged" Function="GameplayMenu.GameplayDifficultyEasyButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/RadioButton" Name="orxonox/DifficultyNormalButton" >
- <Property Name="Text" Value="Normal" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.325,0},{0.525,0},{0.675,0},{0.65,0}}" />
- <Event Name="SelectStateChanged" Function="GameplayMenu.GameplayDifficultyNormalButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/RadioButton" Name="orxonox/DifficultyHardButton" >
- <Property Name="Text" Value="Hard" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.325,0},{0.725,0},{0.675,0},{0.85,0}}" />
- <Event Name="SelectStateChanged" Function="GameplayMenu.GameplayDifficultyHardButton_clicked"/>
- </Window>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/Theme" >
- <Property Name="Text" Value="Theme" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.2,0},{0.95,0},{0.9,0}}" />
- <Window Type="TaharezLook/Combobox" Name="orxonox/ThemeCombobox" >
- <Property Name="AlwaysOnTop" Value="True" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.21,0},{0.95,0},{0.9,0}}" />
- <Property Name="MaxEditTextLength" Value="1073741823" />
- <Property Name="ReadOnly" Value="True" />
- <Event Name="ListSelectionAccepted" Function="GameplayMenu.GameplayThemeCombobox_changed" />
- </Window>
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/GameplayBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="GameplayMenu.GameplayBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/GameplayBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/GameplayWindow" >
+ <Property Name="Text" Value="Gameplay" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/Difficulty" >
+ <Property Name="Text" Value="Difficulty" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.2,0},{0.475,0},{0.9,0}}" />
+ <Window Type="TaharezLook/RadioButton" Name="orxonox/DifficultyEasyButton" >
+ <Property Name="Text" Value="Easy" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.325,0},{0.325,0},{0.675,0},{0.45,0}}" />
+ <Event Name="SelectStateChanged" Function="GameplayMenu.GameplayDifficultyEasyButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/RadioButton" Name="orxonox/DifficultyNormalButton" >
+ <Property Name="Text" Value="Normal" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.325,0},{0.525,0},{0.675,0},{0.65,0}}" />
+ <Event Name="SelectStateChanged" Function="GameplayMenu.GameplayDifficultyNormalButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/RadioButton" Name="orxonox/DifficultyHardButton" >
+ <Property Name="Text" Value="Hard" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.325,0},{0.725,0},{0.675,0},{0.85,0}}" />
+ <Event Name="SelectStateChanged" Function="GameplayMenu.GameplayDifficultyHardButton_clicked"/>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/Theme" >
+ <Property Name="Text" Value="Theme" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.2,0},{0.95,0},{0.9,0}}" />
+ <Window Type="TaharezLook/Combobox" Name="orxonox/ThemeCombobox" >
+ <Property Name="AlwaysOnTop" Value="True" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.21,0},{0.95,0},{0.9,0}}" />
+ <Property Name="MaxEditTextLength" Value="1073741823" />
+ <Property Name="ReadOnly" Value="True" />
+ <Event Name="ListSelectionAccepted" Function="GameplayMenu.GameplayThemeCombobox_changed" />
+ </Window>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/GameplayBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="GameplayMenu.GameplayBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/GameplayMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/GraphicsMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/GraphicsMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/GraphicsMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,78 +1,78 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/GraphicsBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/GraphicsWindow" >
- <Property Name="Text" Value="Graphics" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2875,0},{0.75,0},{0.6375,0}}" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/Resolution" >
- <Property Name="Text" Value="Resolution" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.475,0},{0.92,0}}" />
- <Window Type="TaharezLook/Listbox" Name="orxonox/ResolutionListbox" >
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.95,0}}" />
- <Event Name="ItemSelectionChanged" Function="GraphicsMenu.GraphicsResolutionListbox_changed"/>
- </Window>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/Brightness" >
- <Property Name="Text" Value="Brightness" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.15,0},{0.95,0},{0.35,0}}" />
- <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/BrightnessScrollbar" >
- <Property Name="Disabled" Value="true" />
- <Property Name="PageSize" Value="0" />
- <Property Name="StepSize" Value="0.1" />
- <Property Name="OverlapSize" Value="0" />
- <Property Name="DocumentSize" Value="1" />
- <Property Name="ScrollPosition" Value="0" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.6,0},{0.95,0},{0.8,0}}" />
- <Event Name="ThumbTrackStarted" Function="GraphicsMenu.GraphicsBrightnessScrollbar_started" />
- <Event Name="ThumbTrackEnded" Function="GraphicsMenu.GraphicsBrightnessScrollbar_ended" />
- <Event Name="ScrollPosChanged" Function="GraphicsMenu.GraphicsBrightnessScrollbar_changed" />
- </Window>
- </Window>
- <Window Type="TaharezLook/Checkbox" Name="orxonox/FullscreenCheckbox" >
- <Property Name="Text" Value="Fullscreen" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.65,0},{0.4,0},{0.85,0},{0.475,0}}" />
- <Event Name="CheckStateChanged" Function="GraphicsMenu.GraphicsFullscreenCheckbox_clicked"/>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/GraphicsInfo" >
- <Property Name="Text" >
-Changes in graphics
-settings require
-a game restart.</Property>
- <Property Name="TextColours" Value="FF4444FF" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.525,0},{0.95,0},{0.92,0}}" />
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/GraphicsBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="GraphicsMenu.GraphicsBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/GraphicsBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/GraphicsWindow" >
+ <Property Name="Text" Value="Graphics" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2875,0},{0.75,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/Resolution" >
+ <Property Name="Text" Value="Resolution" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.475,0},{0.92,0}}" />
+ <Window Type="TaharezLook/Listbox" Name="orxonox/ResolutionListbox" >
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.95,0}}" />
+ <Event Name="ItemSelectionChanged" Function="GraphicsMenu.GraphicsResolutionListbox_changed"/>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/Brightness" >
+ <Property Name="Text" Value="Brightness" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.15,0},{0.95,0},{0.35,0}}" />
+ <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/BrightnessScrollbar" >
+ <Property Name="Disabled" Value="true" />
+ <Property Name="PageSize" Value="0" />
+ <Property Name="StepSize" Value="0.1" />
+ <Property Name="OverlapSize" Value="0" />
+ <Property Name="DocumentSize" Value="1" />
+ <Property Name="ScrollPosition" Value="0" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.6,0},{0.95,0},{0.8,0}}" />
+ <Event Name="ThumbTrackStarted" Function="GraphicsMenu.GraphicsBrightnessScrollbar_started" />
+ <Event Name="ThumbTrackEnded" Function="GraphicsMenu.GraphicsBrightnessScrollbar_ended" />
+ <Event Name="ScrollPosChanged" Function="GraphicsMenu.GraphicsBrightnessScrollbar_changed" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Checkbox" Name="orxonox/FullscreenCheckbox" >
+ <Property Name="Text" Value="Fullscreen" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.65,0},{0.4,0},{0.85,0},{0.475,0}}" />
+ <Event Name="CheckStateChanged" Function="GraphicsMenu.GraphicsFullscreenCheckbox_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/GraphicsInfo" >
+ <Property Name="Text" >
+Changes in graphics
+settings require
+a game restart.</Property>
+ <Property Name="TextColours" Value="FF4444FF" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.525,0},{0.95,0},{0.92,0}}" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/GraphicsBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="GraphicsMenu.GraphicsBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/GraphicsMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/InGameMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/InGameMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/InGameMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,41 +1,41 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="DefaultWindow" Name="orxonox/InGameMenu_RootWindow" >
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Window Type="TaharezLook/Button" Name="orxonox/InGameMenu_ReturnButton" >
- <Property Name="Font" Value="BlueHighway-12" />
- <Property Name="Text" Value="Return to Game" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />
- <Property Name="Alpha" Value="0.7" />
- <Event Name="Clicked" Function="InGameMenu.button_return_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/InGameMenu_MainMenuButton" >
- <Property Name="Font" Value="BlueHighway-12" />
- <Property Name="Text" Value="Main Menu" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4625,0},{0.6,0},{0.5125,0}}" />
- <Property Name="Alpha" Value="0.7" />
- <Event Name="Clicked" Function="InGameMenu.button_mainmenu_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/InGameMenu_SettingsButton" >
- <Property Name="Font" Value="BlueHighway-12" />
- <Property Name="Text" Value="Settings" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5625,0},{0.6,0},{0.6125,0}}" />
- <Property Name="Alpha" Value="0.7" />
- <Event Name="Clicked" Function="InGameMenu.button_settings_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/InGameMenu_QuitButton" >
- <Property Name="Font" Value="BlueHighway-12" />
- <Property Name="Text" Value="Quit" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
- <Property Name="Alpha" Value="0.7" />
- <Event Name="Clicked" Function="InGameMenu.button_quit_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="DefaultWindow" Name="orxonox/InGameMenu_RootWindow" >
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Window Type="TaharezLook/Button" Name="orxonox/InGameMenu_ReturnButton" >
+ <Property Name="Font" Value="BlueHighway-12" />
+ <Property Name="Text" Value="Return to Game" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />
+ <Property Name="Alpha" Value="0.7" />
+ <Event Name="Clicked" Function="InGameMenu.button_return_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/InGameMenu_MainMenuButton" >
+ <Property Name="Font" Value="BlueHighway-12" />
+ <Property Name="Text" Value="Main Menu" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4625,0},{0.6,0},{0.5125,0}}" />
+ <Property Name="Alpha" Value="0.7" />
+ <Event Name="Clicked" Function="InGameMenu.button_mainmenu_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/InGameMenu_SettingsButton" >
+ <Property Name="Font" Value="BlueHighway-12" />
+ <Property Name="Text" Value="Settings" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5625,0},{0.6,0},{0.6125,0}}" />
+ <Property Name="Alpha" Value="0.7" />
+ <Event Name="Clicked" Function="InGameMenu.button_settings_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/InGameMenu_QuitButton" >
+ <Property Name="Font" Value="BlueHighway-12" />
+ <Property Name="Text" Value="Quit" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
+ <Property Name="Alpha" Value="0.7" />
+ <Event Name="Clicked" Function="InGameMenu.button_quit_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/InGameMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/InfoPopup.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/InfoPopup.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/InfoPopup.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,32 +1,32 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="DefaultWindow" Name="orxonox/InfoPopup_RootWindow" >
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Window Type="TaharezLook/StaticImage" Name="orxonox/InfoPopup_Background" >
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="Alpha" Value="0.7" />
- <Window Type="TaharezLook/Button" Name="orxonox/InfoPopup_close" >
- <Property Name="Font" Value="BlueHighway-12" />
- <Property Name="Text" Value="Close" />
- <Property Name="Alpha" Value="0.7" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5,0},{0.6,0},{0.55,0}}" />
- <Event Name="Clicked" Function="InfoPopup.close"/>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/InfoPopup_text" >
- <Property Name="Text" Value="Template text" />
- <Property Name="TextColours" Value="FF4444FF" />
- <Property Name="HorzFormatting" Value="WordWrapCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.375,0},{0.75,0},{0.475,0}}" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="Alpha" Value="0.8" />
- </Window>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="DefaultWindow" Name="orxonox/InfoPopup_RootWindow" >
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/InfoPopup_Background" >
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="Alpha" Value="0.7" />
+ <Window Type="TaharezLook/Button" Name="orxonox/InfoPopup_close" >
+ <Property Name="Font" Value="BlueHighway-12" />
+ <Property Name="Text" Value="Close" />
+ <Property Name="Alpha" Value="0.7" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5,0},{0.6,0},{0.55,0}}" />
+ <Event Name="Clicked" Function="InfoPopup.close"/>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/InfoPopup_text" >
+ <Property Name="Text" Value="Template text" />
+ <Property Name="TextColours" Value="FF4444FF" />
+ <Property Name="HorzFormatting" Value="WordWrapCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.375,0},{0.75,0},{0.475,0}}" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="Alpha" Value="0.8" />
+ </Window>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/InfoPopup.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Property changes on: code/branches/presentation2/data/gui/layouts/KeyBindMenu.layout
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:eol-style
+ native
Property changes on: code/branches/presentation2/data/gui/layouts/MainMenuBackground.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/MouseControlsMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/MouseControlsMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/MouseControlsMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,87 +1,87 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/MouseControlsBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/MouseControlsWindow" >
- <Property Name="Text" Value="Mouse controls" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/MouseNormalSensitivity" >
- <Property Name="Text" Value="Sensitivity (normal mode) " />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.2,0},{0.95,0},{0.45,0}}" />
- <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/MouseNormalScrollbar" >
- <Property Name="PageSize" Value="0" />
- <Property Name="StepSize" Value="1" />
- <Property Name="OverlapSize" Value="0" />
- <Property Name="DocumentSize" Value="1" />
- <Property Name="ScrollPosition" Value="0" />
- <Property Name="StepSize" Value="0.1" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.02,0},{0.6,0},{0.565,0},{0.8,0}}" />
- <Event Name="ThumbTrackStarted" Function="MouseControlsMenu.MouseControlsMouseNormalScrollbar_started" />
- <Event Name="ThumbTrackEnded" Function="MouseControlsMenu.MouseControlsMouseNormalScrollbar_ended" />
- <Event Name="ScrollPosChanged" Function="MouseControlsMenu.MouseControlsMouseNormalScrollbar_changed" />
- </Window>
- <Window Type="TaharezLook/RadioButton" Name="orxonox/MouseNormalButton" >
- <Property Name="Text" Value="Normal mouse input" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.61,0},{0.5,0},{0.975,0},{0.85,0}}" />
- <Event Name="SelectStateChanged" Function="MouseControlsMenu.MouseNormalButton_clicked" />
- </Window>
- </Window>
- <Window Type="TaharezLook/StaticText" Name="orxonox/MouseDeriveSensitivity" >
- <Property Name="Text" Value="Sensitivity (derive mode) " />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.55,0},{0.95,0},{0.8,0}}" />
- <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/MouseDeriveScrollbar" >
- <Property Name="PageSize" Value="0" />
- <Property Name="StepSize" Value="1" />
- <Property Name="OverlapSize" Value="0" />
- <Property Name="DocumentSize" Value="1" />
- <Property Name="ScrollPosition" Value="0" />
- <Property Name="StepSize" Value="0.1" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.02,0},{0.6,0},{0.565,0},{0.8,0}}" />
- <Event Name="ThumbTrackStarted" Function="MouseControlsMenu.MouseControlsMouseDeriveScrollbar_started" />
- <Event Name="ThumbTrackEnded" Function="MouseControlsMenu.MouseControlsMouseDeriveScrollbar_ended" />
- <Event Name="ScrollPosChanged" Function="MouseControlsMenu.MouseControlsMouseDeriveScrollbar_changed" />
- </Window>
- <Window Type="TaharezLook/RadioButton" Name="orxonox/MouseDeriveButton" >
- <Property Name="Text" Value="Derive mouse input" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.61,0},{0.5,0},{0.975,0},{0.85,0}}" />
- <Event Name="SelectStateChanged" Function="MouseControlsMenu.MouseDeriveButton_clicked" />
- </Window>
- </Window>
- <Window Type="TaharezLook/Checkbox" Name="orxonox/MouseInvertCheckbox" >
- <Property Name="Text" Value="Invert mouse" />
- <Property Name="Disabled" Value="true" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.39,0},{0.85,0},{0.61,0},{0.95,0}}" />
- <Event Name="CheckStateChanged" Function="MouseControlsMenu.MouseInvertCheckbox_clicked" />
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/MouseControlsBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="MouseControlsMenu.MouseControlsBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/MouseControlsBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/MouseControlsWindow" >
+ <Property Name="Text" Value="Mouse controls" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/MouseNormalSensitivity" >
+ <Property Name="Text" Value="Sensitivity (normal mode) " />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.2,0},{0.95,0},{0.45,0}}" />
+ <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/MouseNormalScrollbar" >
+ <Property Name="PageSize" Value="0" />
+ <Property Name="StepSize" Value="1" />
+ <Property Name="OverlapSize" Value="0" />
+ <Property Name="DocumentSize" Value="1" />
+ <Property Name="ScrollPosition" Value="0" />
+ <Property Name="StepSize" Value="0.1" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.02,0},{0.6,0},{0.565,0},{0.8,0}}" />
+ <Event Name="ThumbTrackStarted" Function="MouseControlsMenu.MouseControlsMouseNormalScrollbar_started" />
+ <Event Name="ThumbTrackEnded" Function="MouseControlsMenu.MouseControlsMouseNormalScrollbar_ended" />
+ <Event Name="ScrollPosChanged" Function="MouseControlsMenu.MouseControlsMouseNormalScrollbar_changed" />
+ </Window>
+ <Window Type="TaharezLook/RadioButton" Name="orxonox/MouseNormalButton" >
+ <Property Name="Text" Value="Normal mouse input" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.61,0},{0.5,0},{0.975,0},{0.85,0}}" />
+ <Event Name="SelectStateChanged" Function="MouseControlsMenu.MouseNormalButton_clicked" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/StaticText" Name="orxonox/MouseDeriveSensitivity" >
+ <Property Name="Text" Value="Sensitivity (derive mode) " />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.55,0},{0.95,0},{0.8,0}}" />
+ <Window Type="TaharezLook/HorizontalScrollbar" Name="orxonox/MouseDeriveScrollbar" >
+ <Property Name="PageSize" Value="0" />
+ <Property Name="StepSize" Value="1" />
+ <Property Name="OverlapSize" Value="0" />
+ <Property Name="DocumentSize" Value="1" />
+ <Property Name="ScrollPosition" Value="0" />
+ <Property Name="StepSize" Value="0.1" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.02,0},{0.6,0},{0.565,0},{0.8,0}}" />
+ <Event Name="ThumbTrackStarted" Function="MouseControlsMenu.MouseControlsMouseDeriveScrollbar_started" />
+ <Event Name="ThumbTrackEnded" Function="MouseControlsMenu.MouseControlsMouseDeriveScrollbar_ended" />
+ <Event Name="ScrollPosChanged" Function="MouseControlsMenu.MouseControlsMouseDeriveScrollbar_changed" />
+ </Window>
+ <Window Type="TaharezLook/RadioButton" Name="orxonox/MouseDeriveButton" >
+ <Property Name="Text" Value="Derive mouse input" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.61,0},{0.5,0},{0.975,0},{0.85,0}}" />
+ <Event Name="SelectStateChanged" Function="MouseControlsMenu.MouseDeriveButton_clicked" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Checkbox" Name="orxonox/MouseInvertCheckbox" >
+ <Property Name="Text" Value="Invert mouse" />
+ <Property Name="Disabled" Value="true" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.39,0},{0.85,0},{0.61,0},{0.95,0}}" />
+ <Event Name="CheckStateChanged" Function="MouseControlsMenu.MouseInvertCheckbox_clicked" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/MouseControlsBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="MouseControlsMenu.MouseControlsBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/MouseControlsMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/MultiplayerMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/MultiplayerMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/MultiplayerMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,54 +1,54 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/MultiplayerBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/MultiplayerWindow" >
- <Property Name="Text" Value="Multiplayer" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2875,0},{0.75,0},{0.6375,0}}" />
- <Window Type="TaharezLook/Listbox" Name="orxonox/MultiplayerLevelListbox" >
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.8,0}}" />
- </Window>
- <Window Type="TaharezLook/RadioButton" Name="orxonox/MultiplayerJoinButton" >
- <Property Name="Text" Value="Join" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.85,0},{0.3,0},{0.95,0}}" />
- <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerJoinButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/RadioButton" Name="orxonox/MultiplayerHostButton" >
- <Property Name="Text" Value="Host" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.85,0},{0.6,0},{0.95,0}}" />
- <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerHostButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/RadioButton" Name="orxonox/MultiplayerDedicatedButton" >
- <Property Name="Text" Value="Dedicated" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.7,0},{0.85,0},{0.9,0},{0.95,0}}" />
- <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerDedicatedButton_clicked"/>
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/MultiplayerStartButton" >
- <Property Name="Text" Value="Start" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.2875,0},{0.6625,0},{0.4875,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="MultiplayerMenu.MultiplayerStartButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/MultiplayerBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.6625,0},{0.7125,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="MultiplayerMenu.MultiplayerBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/MultiplayerBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/MultiplayerWindow" >
+ <Property Name="Text" Value="Multiplayer" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2875,0},{0.75,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/Listbox" Name="orxonox/MultiplayerLevelListbox" >
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.8,0}}" />
+ </Window>
+ <Window Type="TaharezLook/RadioButton" Name="orxonox/MultiplayerJoinButton" >
+ <Property Name="Text" Value="Join" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.85,0},{0.3,0},{0.95,0}}" />
+ <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerJoinButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/RadioButton" Name="orxonox/MultiplayerHostButton" >
+ <Property Name="Text" Value="Host" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.85,0},{0.6,0},{0.95,0}}" />
+ <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerHostButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/RadioButton" Name="orxonox/MultiplayerDedicatedButton" >
+ <Property Name="Text" Value="Dedicated" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.7,0},{0.85,0},{0.9,0},{0.95,0}}" />
+ <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerDedicatedButton_clicked"/>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/MultiplayerStartButton" >
+ <Property Name="Text" Value="Start" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.2875,0},{0.6625,0},{0.4875,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="MultiplayerMenu.MultiplayerStartButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/MultiplayerBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.6625,0},{0.7125,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="MultiplayerMenu.MultiplayerBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/MultiplayerMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/MultiplayerOptionsMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/MultiplayerOptionsMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/MultiplayerOptionsMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,26 +1,26 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/MultiplayerOptionsBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/MultiplayerOptionsWindow" >
- <Property Name="Text" Value="Multiplayer options" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/MultiplayerOptionsBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.625,0},{0.6,0},{0.675,0}}" />
- <Event Name="Clicked" Function="MultiplayerOptionsMenu.MultiplayerOptionsBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/MultiplayerOptionsBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/MultiplayerOptionsWindow" >
+ <Property Name="Text" Value="Multiplayer options" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/MultiplayerOptionsBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.625,0},{0.6,0},{0.675,0}}" />
+ <Event Name="Clicked" Function="MultiplayerOptionsMenu.MultiplayerOptionsBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/MultiplayerOptionsMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/SettingsMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/SettingsMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/SettingsMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,65 +1,65 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/SettingsBackground" >
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/SettingsWindow" >
- <Property Name="Text" Value="Settings" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
- <Window Type="TaharezLook/Button" Name="orxonox/GameplayButton" >
- <Property Name="Text" Value="Gameplay" />
- <Property Name="Disabled" Value="True" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.181818,0},{0.45,0},{0.363636,0}}" />
- <Event Name="Clicked" Function="SettingsMenu.SettingsGameplayButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/MultiplayerOptionsButton" >
- <Property Name="Text" Value="Multiplayer options" />
- <Property Name="Disabled" Value="True" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.454545,0},{0.45,0},{0.636363,0}}" />
- <Event Name="Clicked" Function="SettingsMenu.SettingsMultiplayerOptionsButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/ControlsButton" >
- <Property Name="Text" Value="Controls" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.727272,0},{0.45,0},{0.909090,0}}" />
- <Event Name="Clicked" Function="SettingsMenu.SettingsControlsButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/GraphicsButton" >
- <Property Name="Text" Value="Graphics" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.181818,0},{0.95,0},{0.363636,0}}" />
- <Event Name="Clicked" Function="SettingsMenu.SettingsGraphicsButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/AudioButton" >
- <Property Name="Text" Value="Audio" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.454545,0},{0.95,0},{0.636363,0}}" />
- <Event Name="Clicked" Function="SettingsMenu.SettingsAudioButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/ResetSettingsButton" >
- <Property Name="Text" Value="Reset settings" />
- <Property Name="Disabled" Value="True" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.727272,0},{0.95,0},{0.909090,0}}" />
- <Event Name="Clicked" Function="SettingsMenu.SettingsResetSettingsButton_clicked"/>
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/SettingsBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="SettingsMenu.SettingsBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/SettingsBackground" >
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/SettingsWindow" >
+ <Property Name="Text" Value="Settings" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/Button" Name="orxonox/GameplayButton" >
+ <Property Name="Text" Value="Gameplay" />
+ <Property Name="Disabled" Value="True" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.181818,0},{0.45,0},{0.363636,0}}" />
+ <Event Name="Clicked" Function="SettingsMenu.SettingsGameplayButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/MultiplayerOptionsButton" >
+ <Property Name="Text" Value="Multiplayer options" />
+ <Property Name="Disabled" Value="True" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.454545,0},{0.45,0},{0.636363,0}}" />
+ <Event Name="Clicked" Function="SettingsMenu.SettingsMultiplayerOptionsButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/ControlsButton" >
+ <Property Name="Text" Value="Controls" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.727272,0},{0.45,0},{0.909090,0}}" />
+ <Event Name="Clicked" Function="SettingsMenu.SettingsControlsButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/GraphicsButton" >
+ <Property Name="Text" Value="Graphics" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.181818,0},{0.95,0},{0.363636,0}}" />
+ <Event Name="Clicked" Function="SettingsMenu.SettingsGraphicsButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/AudioButton" >
+ <Property Name="Text" Value="Audio" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.454545,0},{0.95,0},{0.636363,0}}" />
+ <Event Name="Clicked" Function="SettingsMenu.SettingsAudioButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/ResetSettingsButton" >
+ <Property Name="Text" Value="Reset settings" />
+ <Property Name="Disabled" Value="True" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.727272,0},{0.95,0},{0.909090,0}}" />
+ <Event Name="Clicked" Function="SettingsMenu.SettingsResetSettingsButton_clicked"/>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/SettingsBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="SettingsMenu.SettingsBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/SettingsMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/layouts/SingleplayerMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/SingleplayerMenu.layout 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/layouts/SingleplayerMenu.layout 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,36 +1,36 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<GUILayout >
- <Window Type="TaharezLook/StaticImage" Name="orxonox/SingleplayerBackground" >
- <Property Name="FrameEnabled" Value="False" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
- <Property Name="BackgroundEnabled" Value="False" />
- <Window Type="TaharezLook/StaticText" Name="orxonox/SingleplayerWindow" >
- <Property Name="Text" Value="Singleplayer" />
- <Property Name="Alpha" Value="0.8" />
- <Property Name="InheritsAlpha" Value="False" />
- <Property Name="HorzFormatting" Value="HorzCentred" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="VertFormatting" Value="TopAligned" />
- <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2875,0},{0.75,0},{0.6375,0}}" />
- <Window Type="TaharezLook/Listbox" Name="orxonox/SingleplayerLevelListbox" >
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.92,0}}" />
- </Window>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/SingleplayerStartButton" >
- <Property Name="Text" Value="Start" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.2875,0},{0.6625,0},{0.4875,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="SingleplayerMenu.SingleplayerStartButton_clicked"/>
- </Window>
- <Window Type="TaharezLook/Button" Name="orxonox/SingleplayerBackButton" >
- <Property Name="Text" Value="Back" />
- <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
- <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.6625,0},{0.7125,0},{0.7125,0}}" />
- <Event Name="Clicked" Function="SingleplayerMenu.SingleplayerBackButton_clicked"/>
- </Window>
- </Window>
-</GUILayout>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="TaharezLook/StaticImage" Name="orxonox/SingleplayerBackground" >
+ <Property Name="FrameEnabled" Value="False" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Property Name="BackgroundEnabled" Value="False" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/SingleplayerWindow" >
+ <Property Name="Text" Value="Singleplayer" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2875,0},{0.75,0},{0.6375,0}}" />
+ <Window Type="TaharezLook/Listbox" Name="orxonox/SingleplayerLevelListbox" >
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.92,0}}" />
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/SingleplayerStartButton" >
+ <Property Name="Text" Value="Start" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.2875,0},{0.6625,0},{0.4875,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="SingleplayerMenu.SingleplayerStartButton_clicked"/>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/SingleplayerBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.6625,0},{0.7125,0},{0.7125,0}}" />
+ <Event Name="Clicked" Function="SingleplayerMenu.SingleplayerBackButton_clicked"/>
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/SingleplayerMenu.layout
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/AudioMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/AudioMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/AudioMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,179 +1,179 @@
--- AudioMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- AudioMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "AudioMenu"
-P.layoutString = "AudioMenu.layout"
-
-function P:init()
- soundMgr = orxonox.SoundManager:getInstance()
- block = false
- masterscrollbar_active = false
- musicscrollbar_active = false
- effectsscrollbar_active = false
- mastervolume = soundMgr:getVolume(orxonox.SoundType.none)
- musicvolume = soundMgr:getVolume(orxonox.SoundType.ambient)
- effectsvolume = soundMgr:getVolume(orxonox.SoundType.effects)
- mastermute = soundMgr:getMute(orxonox.SoundType.none)
- musicmute = soundMgr:getMute(orxonox.SoundType.ambient)
- effectsmute = soundMgr:getMute(orxonox.SoundType.effects)
- masterscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MasterScrollbar"),"CEGUI::Scrollbar")
- musicscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MusicScrollbar"),"CEGUI::Scrollbar")
- effectsscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/EffectsScrollbar"),"CEGUI::Scrollbar")
- mastermutewindow = tolua.cast(winMgr:getWindow("orxonox/MasterCheckbox"),"CEGUI::Checkbox")
- musicmutewindow = tolua.cast(winMgr:getWindow("orxonox/MusicCheckbox"),"CEGUI::Checkbox")
- effectsmutewindow = tolua.cast(winMgr:getWindow("orxonox/EffectsCheckbox"),"CEGUI::Checkbox")
- masterscrollbarwindow:setScrollPosition(mastervolume)
- musicscrollbarwindow:setScrollPosition(musicvolume)
- effectsscrollbarwindow:setScrollPosition(effectsvolume)
- mastermutewindow:setSelected(mastermute)
- musicmutewindow:setSelected(musicmute)
- effectsmutewindow:setSelected(effectsmute)
- choice = "Default"
- listboxwindow = winMgr:getWindow("orxonox/AudioThemeListbox")
- local themeList = {}
- table.insert(themeList, "Default")
- table.insert(themeList, "Drum n' Bass")
- for k,v in pairs(themeList) do
- item = CEGUI.createListboxTextItem(v)
- item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
- CEGUI.toListbox(listboxwindow):addItem(item)
- end
-end
-
-function P.AudioMasterScrollbar_changed(e)
- if mastermute then
- block = true
- mastermutewindow:setSelected(false)
- block = false
- mastermute = false
- end
- if masterscrollbar_active == false then
- mastervolume = masterscrollbarwindow:getScrollPosition()
- orxonox.CommandExecutor:execute("config SoundManager soundVolume_ " .. mastervolume)
- end
-end
-
-function P.AudioMasterScrollbar_started(e)
- masterscrollbar_active = true
-end
-
-function P.AudioMasterScrollbar_ended(e)
- mastervolume = masterscrollbarwindow:getScrollPosition()
- orxonox.CommandExecutor:execute("config SoundManager soundVolume_ " .. mastervolume)
- masterscrollbar_active = false
-end
-
-function P.AudioMusicScrollbar_changed(e)
- if musicmute then
- block = true
- musicmutewindow:setSelected(false)
- block = false
- musicmute = false
- end
- if musicscrollbar_active == false then
- musicvolume = musicscrollbarwindow:getScrollPosition()
- orxonox.CommandExecutor:execute("config SoundManager ambientVolume_ " .. musicvolume)
- end
-end
-
-function P.AudioMusicScrollbar_started(e)
- musicscrollbar_active = true
-end
-
-function P.AudioMusicScrollbar_ended(e)
- musicmutewindow:setSelected(false)
- musicvolume = musicscrollbarwindow:getScrollPosition()
- orxonox.CommandExecutor:execute("config SoundManager ambientVolume_ " .. musicvolume)
- musicscrollbar_active = false
-end
-
-function P.AudioEffectsScrollbar_changed(e)
- if effectsmute then
- block = true
- effectsmutewindow:setSelected(false)
- block = false
- effectsmute = false
- end
- if effectsscrollbar_active == false then
- effectsvolume = effectsscrollbarwindow:getScrollPosition()
- orxonox.CommandExecutor:execute("config SoundManager effectsVolume_ " .. effectsvolume)
- end
-end
-
-function P.AudioEffectsScrollbar_started(e)
- effectsscrollbar_active = true
-end
-
-function P.AudioEffectsScrollbar_ended(e)
- effectsmutewindow:setSelected(false)
- effectsvolume = effectsscrollbarwindow:getScrollPosition()
- orxonox.CommandExecutor:execute("config SoundManager effectsVolume_ " .. effectsvolume)
- effectsscrollbar_active = false
-end
-
-function P.AudioMuteMasterCheckbox_clicked(e)
- if block == false then
- if mastermute then
- masterscrollbarwindow:setScrollPosition(mastervolume)
- mastermute = false
- else
- temp = masterscrollbarwindow:getScrollPosition()
- masterscrollbarwindow:setScrollPosition(0)
- mastervolume = temp
- mastermute = true
- end
- end
- soundMgr:toggleMute(orxonox.SoundType.none)
-end
-
-function P.AudioMuteMusicCheckbox_clicked(e)
- if block == false then
- if musicmute then
- musicscrollbarwindow:setScrollPosition(musicvolume)
- musicmute = false
- else
- temp = musicscrollbarwindow:getScrollPosition()
- musicscrollbarwindow:setScrollPosition(0)
- musicvolume = temp
- musicmute = true
- end
- end
- soundMgr:toggleMute(orxonox.SoundType.ambient)
-end
-
-function P.AudioMuteEffectsCheckbox_clicked(e)
- if block == false then
- if effectsmute then
- effectsscrollbarwindow:setScrollPosition(effectsvolume)
- effectsmute = false
- else
- temp = effectsscrollbarwindow:getScrollPosition()
- effectsscrollbarwindow:setScrollPosition(0)
- effectsvolume = temp
- effectsmute = true
- end
- end
- soundMgr:toggleMute(orxonox.SoundType.effects)
-end
-
-function P.AudioThemeListbox_changed(e)
- if listboxwindow:isItemSelected(1) then
- orxonox.CommandExecutor:execute("setMood dnb")
- else
- orxonox.CommandExecutor:execute("setMood default")
- end
-end
-
-function P.AudioBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- AudioMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ AudioMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "AudioMenu"
+P.layoutString = "AudioMenu.layout"
+
+function P:init()
+ soundMgr = orxonox.SoundManager:getInstance()
+ block = false
+ masterscrollbar_active = false
+ musicscrollbar_active = false
+ effectsscrollbar_active = false
+ mastervolume = soundMgr:getVolume(orxonox.SoundType.none)
+ musicvolume = soundMgr:getVolume(orxonox.SoundType.ambient)
+ effectsvolume = soundMgr:getVolume(orxonox.SoundType.effects)
+ mastermute = soundMgr:getMute(orxonox.SoundType.none)
+ musicmute = soundMgr:getMute(orxonox.SoundType.ambient)
+ effectsmute = soundMgr:getMute(orxonox.SoundType.effects)
+ masterscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MasterScrollbar"),"CEGUI::Scrollbar")
+ musicscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MusicScrollbar"),"CEGUI::Scrollbar")
+ effectsscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/EffectsScrollbar"),"CEGUI::Scrollbar")
+ mastermutewindow = tolua.cast(winMgr:getWindow("orxonox/MasterCheckbox"),"CEGUI::Checkbox")
+ musicmutewindow = tolua.cast(winMgr:getWindow("orxonox/MusicCheckbox"),"CEGUI::Checkbox")
+ effectsmutewindow = tolua.cast(winMgr:getWindow("orxonox/EffectsCheckbox"),"CEGUI::Checkbox")
+ masterscrollbarwindow:setScrollPosition(mastervolume)
+ musicscrollbarwindow:setScrollPosition(musicvolume)
+ effectsscrollbarwindow:setScrollPosition(effectsvolume)
+ mastermutewindow:setSelected(mastermute)
+ musicmutewindow:setSelected(musicmute)
+ effectsmutewindow:setSelected(effectsmute)
+ choice = "Default"
+ listboxwindow = winMgr:getWindow("orxonox/AudioThemeListbox")
+ local themeList = {}
+ table.insert(themeList, "Default")
+ table.insert(themeList, "Drum n' Bass")
+ for k,v in pairs(themeList) do
+ item = CEGUI.createListboxTextItem(v)
+ item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
+ CEGUI.toListbox(listboxwindow):addItem(item)
+ end
+end
+
+function P.AudioMasterScrollbar_changed(e)
+ if mastermute then
+ block = true
+ mastermutewindow:setSelected(false)
+ block = false
+ mastermute = false
+ end
+ if masterscrollbar_active == false then
+ mastervolume = masterscrollbarwindow:getScrollPosition()
+ orxonox.CommandExecutor:execute("config SoundManager soundVolume_ " .. mastervolume)
+ end
+end
+
+function P.AudioMasterScrollbar_started(e)
+ masterscrollbar_active = true
+end
+
+function P.AudioMasterScrollbar_ended(e)
+ mastervolume = masterscrollbarwindow:getScrollPosition()
+ orxonox.CommandExecutor:execute("config SoundManager soundVolume_ " .. mastervolume)
+ masterscrollbar_active = false
+end
+
+function P.AudioMusicScrollbar_changed(e)
+ if musicmute then
+ block = true
+ musicmutewindow:setSelected(false)
+ block = false
+ musicmute = false
+ end
+ if musicscrollbar_active == false then
+ musicvolume = musicscrollbarwindow:getScrollPosition()
+ orxonox.CommandExecutor:execute("config SoundManager ambientVolume_ " .. musicvolume)
+ end
+end
+
+function P.AudioMusicScrollbar_started(e)
+ musicscrollbar_active = true
+end
+
+function P.AudioMusicScrollbar_ended(e)
+ musicmutewindow:setSelected(false)
+ musicvolume = musicscrollbarwindow:getScrollPosition()
+ orxonox.CommandExecutor:execute("config SoundManager ambientVolume_ " .. musicvolume)
+ musicscrollbar_active = false
+end
+
+function P.AudioEffectsScrollbar_changed(e)
+ if effectsmute then
+ block = true
+ effectsmutewindow:setSelected(false)
+ block = false
+ effectsmute = false
+ end
+ if effectsscrollbar_active == false then
+ effectsvolume = effectsscrollbarwindow:getScrollPosition()
+ orxonox.CommandExecutor:execute("config SoundManager effectsVolume_ " .. effectsvolume)
+ end
+end
+
+function P.AudioEffectsScrollbar_started(e)
+ effectsscrollbar_active = true
+end
+
+function P.AudioEffectsScrollbar_ended(e)
+ effectsmutewindow:setSelected(false)
+ effectsvolume = effectsscrollbarwindow:getScrollPosition()
+ orxonox.CommandExecutor:execute("config SoundManager effectsVolume_ " .. effectsvolume)
+ effectsscrollbar_active = false
+end
+
+function P.AudioMuteMasterCheckbox_clicked(e)
+ if block == false then
+ if mastermute then
+ masterscrollbarwindow:setScrollPosition(mastervolume)
+ mastermute = false
+ else
+ temp = masterscrollbarwindow:getScrollPosition()
+ masterscrollbarwindow:setScrollPosition(0)
+ mastervolume = temp
+ mastermute = true
+ end
+ end
+ soundMgr:toggleMute(orxonox.SoundType.none)
+end
+
+function P.AudioMuteMusicCheckbox_clicked(e)
+ if block == false then
+ if musicmute then
+ musicscrollbarwindow:setScrollPosition(musicvolume)
+ musicmute = false
+ else
+ temp = musicscrollbarwindow:getScrollPosition()
+ musicscrollbarwindow:setScrollPosition(0)
+ musicvolume = temp
+ musicmute = true
+ end
+ end
+ soundMgr:toggleMute(orxonox.SoundType.ambient)
+end
+
+function P.AudioMuteEffectsCheckbox_clicked(e)
+ if block == false then
+ if effectsmute then
+ effectsscrollbarwindow:setScrollPosition(effectsvolume)
+ effectsmute = false
+ else
+ temp = effectsscrollbarwindow:getScrollPosition()
+ effectsscrollbarwindow:setScrollPosition(0)
+ effectsvolume = temp
+ effectsmute = true
+ end
+ end
+ soundMgr:toggleMute(orxonox.SoundType.effects)
+end
+
+function P.AudioThemeListbox_changed(e)
+ if listboxwindow:isItemSelected(1) then
+ orxonox.CommandExecutor:execute("setMood dnb")
+ else
+ orxonox.CommandExecutor:execute("setMood default")
+ end
+end
+
+function P.AudioBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/AudioMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/ControlsMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/ControlsMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/ControlsMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,27 +1,27 @@
--- ControlsMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- ControlsMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "ControlsMenu"
-P.layoutString = "ControlsMenu.layout"
-
-function P.ControlsMouseControlsButton_clicked(e)
- showGUI("MouseControlsMenu", true)
-end
-
-function P.ControlsKeyboardControlsButton_clicked(e)
- showGUI("KeyBindMenu", true)
-end
-
-function P.ControlsBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- ControlsMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ ControlsMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "ControlsMenu"
+P.layoutString = "ControlsMenu.layout"
+
+function P.ControlsMouseControlsButton_clicked(e)
+ showGUI("MouseControlsMenu", true)
+end
+
+function P.ControlsKeyboardControlsButton_clicked(e)
+ showGUI("KeyBindMenu", true)
+end
+
+function P.ControlsBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/ControlsMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/CreditsMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/CreditsMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/CreditsMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,19 +1,19 @@
--- CreditsMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- CreditsMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "CreditsMenu"
-P.layoutString = "CreditsMenu.layout"
-
-function P.CreditsBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- CreditsMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ CreditsMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "CreditsMenu"
+P.layoutString = "CreditsMenu.layout"
+
+function P.CreditsBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/CreditsMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Property changes on: code/branches/presentation2/data/gui/scripts/DecisionPopup.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Property changes on: code/branches/presentation2/data/gui/scripts/GUITools.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/GameplayMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/GameplayMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/GameplayMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,52 +1,52 @@
--- GameplayMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- GameplayMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "GameplayMenu"
-P.layoutString = "GameplayMenu.layout"
-
-function P:init()
- dropdown = winMgr:getWindow("orxonox/ThemeCombobox")
- local themeList = {}
- table.insert(themeList, "Theme 1")
- table.insert(themeList, "Theme 2")
- table.insert(themeList, "Theme 3")
- for k,v in pairs(themeList) do
- item = CEGUI.createListboxTextItem(v)
- item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
- CEGUI.toCombobox(dropdown):addItem(item)
- end
-end
-
-function P.GameplayThemeCombobox_changed(e)
- -- theme
- debug("event: theme")
-end
-
-function P.GameplayDifficultyEasyButton_clicked(e)
- -- difficulty easy
- debug("event: easy")
-end
-
-function P.GameplayDifficultyNormalButton_clicked(e)
- -- difficulty normal
- debug("event: normal")
-end
-
-function P.GameplayDifficultyHardButton_clicked(e)
- -- difficulty hard
- debug("event: hard")
-end
-
-function P.GameplayBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- GameplayMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ GameplayMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "GameplayMenu"
+P.layoutString = "GameplayMenu.layout"
+
+function P:init()
+ dropdown = winMgr:getWindow("orxonox/ThemeCombobox")
+ local themeList = {}
+ table.insert(themeList, "Theme 1")
+ table.insert(themeList, "Theme 2")
+ table.insert(themeList, "Theme 3")
+ for k,v in pairs(themeList) do
+ item = CEGUI.createListboxTextItem(v)
+ item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
+ CEGUI.toCombobox(dropdown):addItem(item)
+ end
+end
+
+function P.GameplayThemeCombobox_changed(e)
+ -- theme
+ debug("event: theme")
+end
+
+function P.GameplayDifficultyEasyButton_clicked(e)
+ -- difficulty easy
+ debug("event: easy")
+end
+
+function P.GameplayDifficultyNormalButton_clicked(e)
+ -- difficulty normal
+ debug("event: normal")
+end
+
+function P.GameplayDifficultyHardButton_clicked(e)
+ -- difficulty hard
+ debug("event: hard")
+end
+
+function P.GameplayBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/GameplayMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/GraphicsMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/GraphicsMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/GraphicsMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,207 +1,207 @@
--- GraphicsMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- GraphicsMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "GraphicsMenu"
-P.layoutString = "GraphicsMenu.layout"
-
-function P:init()
- block = true
- file = orxonox.PathConfig:getConfigPathString() .. orxonox.getConfig("GraphicsManager", "ogreConfigFile_")
- search_mode = 0
- f = io.open(file, "r")
- firstline = f:read("*line")
- rendersystem = string.sub(firstline, 15)
- for line in f:lines() do
- if search_mode == 0 then
- if string.find(line, rendersystem) ~= nil then
- search_mode = 1
- end
- end
- if search_mode == 1 then
- if string.sub(line, 1, 11) == "Full Screen" then
- if string.sub(line, 13) == "Yes" then
- fullscreen = true
- else
- fullscreen = false
- end
- end
- if string.sub(line, 1, 10) == "Video Mode" then
- if string.match(line, "@") == "@" then
- resolution = string.sub(line, 12, string.find(line, "@")-2)
- else
- resolution = string.sub(line, 12)
- end
- break
- end
- end
- end
- f:close()
- local fullscreenwindow = tolua.cast(winMgr:getWindow("orxonox/FullscreenCheckbox"),"CEGUI::Checkbox")
- fullscreenwindow:setSelected(fullscreen)
- listboxwindow = winMgr:getWindow("orxonox/ResolutionListbox")
- local resolutionList = {}
- table.insert(resolutionList, "640 x 480")
- table.insert(resolutionList, "720 x 480")
- table.insert(resolutionList, "720 x 576")
- table.insert(resolutionList, "800 x 480")
- table.insert(resolutionList, "800 x 600")
- table.insert(resolutionList, "1024 x 480")
- table.insert(resolutionList, "1024 x 600")
- table.insert(resolutionList, "1024 x 768")
- table.insert(resolutionList, "1152 x 864")
- table.insert(resolutionList, "1280 x 720")
- table.insert(resolutionList, "1280 x 768")
- table.insert(resolutionList, "1440 x 900")
- for k,v in pairs(resolutionList) do
- item = CEGUI.createListboxTextItem(v)
- item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
- CEGUI.toListbox(listboxwindow):addItem(item)
- end
- if resolution == "640 x 480" then
- listboxwindow:setItemSelectState(0,true)
- elseif resolution == "720 x 480" then
- listboxwindow:setItemSelectState(1,true)
- elseif resolution == "720 x 576" then
- listboxwindow:setItemSelectState(2,true)
- elseif resolution == "800 x 480" then
- listboxwindow:setItemSelectState(3,true)
- elseif resolution == "800 x 600" then
- listboxwindow:setItemSelectState(4,true)
- elseif resolution == "1024 x 480" then
- listboxwindow:setItemSelectState(5,true)
- elseif resolution == "1024 x 600" then
- listboxwindow:setItemSelectState(6,true)
- elseif resolution == "1024 x 768" then
- listboxwindow:setItemSelectState(7,true)
- elseif resolution == "1152 x 864" then
- listboxwindow:setItemSelectState(8,true)
- elseif resolution == "1280 x 720" then
- listboxwindow:setItemSelectState(9,true)
- elseif resolution == "1280 x 768" then
- listboxwindow:setItemSelectState(10,true)
- elseif resolution == "1440 x 900" then
- listboxwindow:setItemSelectState(11,true)
- end
- scrollbar_active = false
- block = false
-end
-
-function P.GraphicsResolutionListbox_changed(e)
- if listboxwindow:isItemSelected(0) then
- resolution = "640 x 480"
- elseif listboxwindow:isItemSelected(1) then
- resolution = "720 x 480"
- elseif listboxwindow:isItemSelected(2) then
- resolution = "720 x 576"
- elseif listboxwindow:isItemSelected(3) then
- resolution = "800 x 480"
- elseif listboxwindow:isItemSelected(4) then
- resolution = "800 x 600"
- elseif listboxwindow:isItemSelected(5) then
- resolution = "1024 x 480"
- elseif listboxwindow:isItemSelected(6) then
- resolution = "1024 x 600"
- elseif listboxwindow:isItemSelected(7) then
- resolution = "1024 x 768"
- elseif listboxwindow:isItemSelected(8) then
- resolution = "1152 x 864"
- elseif listboxwindow:isItemSelected(9) then
- resolution = "1280 x 720"
- elseif listboxwindow:isItemSelected(10) then
- resolution = "1280 x 768"
- elseif listboxwindow:isItemSelected(11) then
- resolution = "1440 x 900"
- end
- search_mode = 0
- f = io.open(file, "r")
- firstline = f:read("*line")
- text = firstline .. "\n"
- rendersystem = string.sub(firstline, 15)
- for line in f:lines() do
- if search_mode == 0 then
- if string.find(line, rendersystem) ~= nil then
- search_mode = 1
- end
- end
- if search_mode == 1 then
- if string.sub(line, 1, 10) == "Video Mode" then
- if string.match(line, "@") == "@" then
- line = "Video Mode=" .. resolution .. string.sub(line, string.find(line, "@")-1)
- else
- line = "Video Mode=" .. resolution
- end
- search_mode = 2
- end
- end
- text = text .. line .. "\n"
- end
- f:close()
- f = io.open(file, "w")
- f:write(text)
- f:close()
-end
-
-function P.GraphicsBrightnessScrollbar_changed(e)
- if scrollbar_active == false then
- -- brightness
- debug("event: brightness")
- end
-end
-
-function P.GraphicsBrightnessScrollbar_started(e)
- scrollbar_active = true
-end
-
-function P.GraphicsBrightnessScrollbar_ended(e)
- -- brightness
- debug("event: brightness")
- scrollbar_active = false
-end
-
-function P.GraphicsFullscreenCheckbox_clicked(e)
- if block == false then
- search_mode = 0
- f = io.open(file, "r")
- firstline = f:read("*line")
- text = firstline .. "\n"
- rendersystem = string.sub(firstline, 15)
- for line in f:lines() do
- if search_mode == 0 then
- if string.find(line, rendersystem) ~= nil then
- search_mode = 1
- end
- end
- if search_mode == 1 then
- if string.sub(line, 1, 11) == "Full Screen" then
- if fullscreen == true then
- line = "Full Screen=No"
- fullscreen = false
- else
- line = "Full Screen=Yes"
- fullscreen = true
- end
- search_mode = 2
- end
- end
- text = text .. line .. "\n"
- end
- f:close()
- f = io.open(file, "w")
- f:write(text)
- f:close()
- end
-end
-
-function P.GraphicsBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- GraphicsMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ GraphicsMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "GraphicsMenu"
+P.layoutString = "GraphicsMenu.layout"
+
+function P:init()
+ block = true
+ file = orxonox.PathConfig:getConfigPathString() .. orxonox.getConfig("GraphicsManager", "ogreConfigFile_")
+ search_mode = 0
+ f = io.open(file, "r")
+ firstline = f:read("*line")
+ rendersystem = string.sub(firstline, 15)
+ for line in f:lines() do
+ if search_mode == 0 then
+ if string.find(line, rendersystem) ~= nil then
+ search_mode = 1
+ end
+ end
+ if search_mode == 1 then
+ if string.sub(line, 1, 11) == "Full Screen" then
+ if string.sub(line, 13) == "Yes" then
+ fullscreen = true
+ else
+ fullscreen = false
+ end
+ end
+ if string.sub(line, 1, 10) == "Video Mode" then
+ if string.match(line, "@") == "@" then
+ resolution = string.sub(line, 12, string.find(line, "@")-2)
+ else
+ resolution = string.sub(line, 12)
+ end
+ break
+ end
+ end
+ end
+ f:close()
+ local fullscreenwindow = tolua.cast(winMgr:getWindow("orxonox/FullscreenCheckbox"),"CEGUI::Checkbox")
+ fullscreenwindow:setSelected(fullscreen)
+ listboxwindow = winMgr:getWindow("orxonox/ResolutionListbox")
+ local resolutionList = {}
+ table.insert(resolutionList, "640 x 480")
+ table.insert(resolutionList, "720 x 480")
+ table.insert(resolutionList, "720 x 576")
+ table.insert(resolutionList, "800 x 480")
+ table.insert(resolutionList, "800 x 600")
+ table.insert(resolutionList, "1024 x 480")
+ table.insert(resolutionList, "1024 x 600")
+ table.insert(resolutionList, "1024 x 768")
+ table.insert(resolutionList, "1152 x 864")
+ table.insert(resolutionList, "1280 x 720")
+ table.insert(resolutionList, "1280 x 768")
+ table.insert(resolutionList, "1440 x 900")
+ for k,v in pairs(resolutionList) do
+ item = CEGUI.createListboxTextItem(v)
+ item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
+ CEGUI.toListbox(listboxwindow):addItem(item)
+ end
+ if resolution == "640 x 480" then
+ listboxwindow:setItemSelectState(0,true)
+ elseif resolution == "720 x 480" then
+ listboxwindow:setItemSelectState(1,true)
+ elseif resolution == "720 x 576" then
+ listboxwindow:setItemSelectState(2,true)
+ elseif resolution == "800 x 480" then
+ listboxwindow:setItemSelectState(3,true)
+ elseif resolution == "800 x 600" then
+ listboxwindow:setItemSelectState(4,true)
+ elseif resolution == "1024 x 480" then
+ listboxwindow:setItemSelectState(5,true)
+ elseif resolution == "1024 x 600" then
+ listboxwindow:setItemSelectState(6,true)
+ elseif resolution == "1024 x 768" then
+ listboxwindow:setItemSelectState(7,true)
+ elseif resolution == "1152 x 864" then
+ listboxwindow:setItemSelectState(8,true)
+ elseif resolution == "1280 x 720" then
+ listboxwindow:setItemSelectState(9,true)
+ elseif resolution == "1280 x 768" then
+ listboxwindow:setItemSelectState(10,true)
+ elseif resolution == "1440 x 900" then
+ listboxwindow:setItemSelectState(11,true)
+ end
+ scrollbar_active = false
+ block = false
+end
+
+function P.GraphicsResolutionListbox_changed(e)
+ if listboxwindow:isItemSelected(0) then
+ resolution = "640 x 480"
+ elseif listboxwindow:isItemSelected(1) then
+ resolution = "720 x 480"
+ elseif listboxwindow:isItemSelected(2) then
+ resolution = "720 x 576"
+ elseif listboxwindow:isItemSelected(3) then
+ resolution = "800 x 480"
+ elseif listboxwindow:isItemSelected(4) then
+ resolution = "800 x 600"
+ elseif listboxwindow:isItemSelected(5) then
+ resolution = "1024 x 480"
+ elseif listboxwindow:isItemSelected(6) then
+ resolution = "1024 x 600"
+ elseif listboxwindow:isItemSelected(7) then
+ resolution = "1024 x 768"
+ elseif listboxwindow:isItemSelected(8) then
+ resolution = "1152 x 864"
+ elseif listboxwindow:isItemSelected(9) then
+ resolution = "1280 x 720"
+ elseif listboxwindow:isItemSelected(10) then
+ resolution = "1280 x 768"
+ elseif listboxwindow:isItemSelected(11) then
+ resolution = "1440 x 900"
+ end
+ search_mode = 0
+ f = io.open(file, "r")
+ firstline = f:read("*line")
+ text = firstline .. "\n"
+ rendersystem = string.sub(firstline, 15)
+ for line in f:lines() do
+ if search_mode == 0 then
+ if string.find(line, rendersystem) ~= nil then
+ search_mode = 1
+ end
+ end
+ if search_mode == 1 then
+ if string.sub(line, 1, 10) == "Video Mode" then
+ if string.match(line, "@") == "@" then
+ line = "Video Mode=" .. resolution .. string.sub(line, string.find(line, "@")-1)
+ else
+ line = "Video Mode=" .. resolution
+ end
+ search_mode = 2
+ end
+ end
+ text = text .. line .. "\n"
+ end
+ f:close()
+ f = io.open(file, "w")
+ f:write(text)
+ f:close()
+end
+
+function P.GraphicsBrightnessScrollbar_changed(e)
+ if scrollbar_active == false then
+ -- brightness
+ debug("event: brightness")
+ end
+end
+
+function P.GraphicsBrightnessScrollbar_started(e)
+ scrollbar_active = true
+end
+
+function P.GraphicsBrightnessScrollbar_ended(e)
+ -- brightness
+ debug("event: brightness")
+ scrollbar_active = false
+end
+
+function P.GraphicsFullscreenCheckbox_clicked(e)
+ if block == false then
+ search_mode = 0
+ f = io.open(file, "r")
+ firstline = f:read("*line")
+ text = firstline .. "\n"
+ rendersystem = string.sub(firstline, 15)
+ for line in f:lines() do
+ if search_mode == 0 then
+ if string.find(line, rendersystem) ~= nil then
+ search_mode = 1
+ end
+ end
+ if search_mode == 1 then
+ if string.sub(line, 1, 11) == "Full Screen" then
+ if fullscreen == true then
+ line = "Full Screen=No"
+ fullscreen = false
+ else
+ line = "Full Screen=Yes"
+ fullscreen = true
+ end
+ search_mode = 2
+ end
+ end
+ text = text .. line .. "\n"
+ end
+ f:close()
+ f = io.open(file, "w")
+ f:write(text)
+ f:close()
+ end
+end
+
+function P.GraphicsBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/GraphicsMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Property changes on: code/branches/presentation2/data/gui/scripts/InGameMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/InfoPopup.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/InfoPopup.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/InfoPopup.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,47 +1,47 @@
--- InfoPopup.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-
-if _REQUIREDNAME == nil then
- InfoPopup = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "InfoPopup"
-P.layoutString = "InfoPopup.layout"
-
-function P:init()
-end
-
-function P.execute(functionPtr, arguments)
- if functionPtr ~= nil then
- if arguments ~= nil then
- functionPtr(arguments)
- else
- functionPtr()
- end
- end
-end
-
-function P.setText( text )
- winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
-end
-
-function P.setCloseButton(closeButton)
- close = winMgr:getWindow("orxonox/InfoPopup_close")
- close:setVisible(closeButton)
- if(not closeButton) then
- close:deactivate();
- else
- close:activate();
- end
-end
-
--- events for ingamemenu
-function P.close(e)
- hideGUI("InfoPopup")
-end
-
-return P
+-- InfoPopup.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+
+if _REQUIREDNAME == nil then
+ InfoPopup = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "InfoPopup"
+P.layoutString = "InfoPopup.layout"
+
+function P:init()
+end
+
+function P.execute(functionPtr, arguments)
+ if functionPtr ~= nil then
+ if arguments ~= nil then
+ functionPtr(arguments)
+ else
+ functionPtr()
+ end
+ end
+end
+
+function P.setText( text )
+ winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
+end
+
+function P.setCloseButton(closeButton)
+ close = winMgr:getWindow("orxonox/InfoPopup_close")
+ close:setVisible(closeButton)
+ if(not closeButton) then
+ close:deactivate();
+ else
+ close:activate();
+ end
+end
+
+-- events for ingamemenu
+function P.close(e)
+ hideGUI("InfoPopup")
+end
+
+return P
Property changes on: code/branches/presentation2/data/gui/scripts/InfoPopup.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,257 +1,257 @@
--- KeyBindMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-
-if _REQUIREDNAME == nil then
- KeyBindMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "KeyBindMenu"
-P.layoutString = "KeyBindMenu.layout"
-
-function P:init()
-
- commandList = {}
- table.insert(commandList, "fire 0")
- table.insert(commandList, "fire 1 | unfire")
- table.insert(commandList, "onpress fire 2")
- table.insert(commandList, "scale 1 moveFrontBack")
- table.insert(commandList, "scale -1 moveFrontBack")
- table.insert(commandList, "boost")
- table.insert(commandList, "scale 1 moveRightLeft")
- table.insert(commandList, "scale -1 moveRightLeft")
- table.insert(commandList, "scale 1 moveUpDown")
- table.insert(commandList, "scale -1 moveUpDown")
- table.insert(commandList, "scale -1 rotateRoll")
- table.insert(commandList, "scale 1 rotateRoll")
- table.insert(commandList, "scale 1 rotateYaw")
- table.insert(commandList, "scale -1 rotateYaw")
- table.insert(commandList, "scale 1 rotatePitch")
- table.insert(commandList, "scale -1 rotatePitch")
- table.insert(commandList, "NewHumanController changeMode")
- table.insert(commandList, "switchCamera")
- table.insert(commandList, "openConsole")
- table.insert(commandList, "OverlayGroup toggleVisibility Debug")
- table.insert(commandList, "OverlayGroup toggleVisibility Stats")
- table.insert(commandList, "mouseLook")
- table.insert(commandList, "pause")
-
- nameList = {}
- table.insert(nameList, "Primary Fire")
- table.insert(nameList, "Secondary Fire")
- table.insert(nameList, "Fire Rocket")
- table.insert(nameList, "Accelerate")
- table.insert(nameList, "Break")
- table.insert(nameList, "Boost")
- table.insert(nameList, "Move Right")
- table.insert(nameList, "Move Left")
- table.insert(nameList, "Move Up")
- table.insert(nameList, "Move Down")
- table.insert(nameList, "Roll Right")
- table.insert(nameList, "Roll Left")
- table.insert(nameList, "Yaw Left")
- table.insert(nameList, "Yaw Right")
- table.insert(nameList, "Pitch Up")
- table.insert(nameList, "Pitch Down")
- table.insert(nameList, "Switch Input Mode")
- table.insert(nameList, "Switch Camera")
- table.insert(nameList, "Open Console")
- table.insert(nameList, "Show Debug")
- table.insert(nameList, "Show Stats")
- table.insert(nameList, "Look Around")
- table.insert(nameList, "Pause")
-
- linesList = {}
-
- --Calculate design parameters:
- sampleWindow = winMgr:createWindow("TaharezLook/StaticText", "orxonox/KeyBindPane/SampleWindow")
- sampleWindow:setText("SampleText")
-
- local size = getMinTextSize(sampleWindow)
- lineHeight = size[1]
-
- commandWidth = 0
- for k,v in pairs(commandList) do
- sampleWindow:setText(nameList[k])
- size = getMinTextSize(sampleWindow)
- if size[2] > commandWidth then
- commandWidth = size[2]
- end
- end
-
- sampleWindow:setText("add")
- size = getMinTextSize(sampleWindow)
- addWidth = size[2]
-
- sampleWindow:setText("X")
- size = getMinTextSize(sampleWindow)
- clearWidth = size[2]
-
- spaceWidth = math.floor(1/14*commandWidth)
-
- buttonWidth = 145
-
- P.createLines()
-
- local funct = luaState:createLuaFunctor("KeyBindMenu.callback()")
- orxonox.KeyBinderManager:getInstance():registerKeybindCallback(funct)
-end
-
-function P.KeyNameNiceifier(key)
- local name = string.sub(key, string.find(key, '%.(.*)')+1)
- local group = string.sub(key, string.find(key, '(.*)%.'))
- group = string.sub(group,1,string.len(group)-1)
- if( group == "Keys") then
- return "Key " .. string.sub(name, string.find(name, 'Key(.*)')+3)
- elseif( group == "MouseButtons") then
- return "Mouse " .. name
- elseif( string.find(group, "JoyStickButtons") ~= nil ) then
- return "Joystick " .. name
- elseif( string.find(group, "JoyStickAxes") ~= nil ) then
- return "Joystick Axis" .. string.sub(name, 5, 6) .. string.sub(name, string.find(name, 'Axis%d%d(.*)')+6)
- elseif( group == "MouseAxes" ) then
- return "Mouse " .. string.sub(name, string.find(name, '.(.*)')+1) .. " " .. string.sub(name, 1, 1) .. "-Axis"
- end
- return key
-end
-
-function P.createLine(k)
- local offset = 0
- local line = winMgr:createWindow("DefaultWindow", "orxonox/KeyBindPane/Binding" .. k)
- line:setHeight(CEGUI.UDim(0, lineHeight))
- line:setPosition(CEGUI.UVector2(CEGUI.UDim(0, 0), CEGUI.UDim(0, lineHeight*(k-1))))
-
- local command = winMgr:createWindow("TaharezLook/StaticText", "orxonox/KeyBindPane/Binding" .. k .. "/Command")
- command:setText(nameList[k])
- command:setSize(CEGUI.UVector2(CEGUI.UDim(0, commandWidth), CEGUI.UDim(1, 0)))
- command:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0, 0)))
- line:addChildWindow(command)
- offset = offset + commandWidth + spaceWidth
-
- local plus = winMgr:createWindow("TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Plus")
- plus:setSize(CEGUI.UVector2(CEGUI.UDim(0, addWidth), CEGUI.UDim(0.7, 0)))
- plus:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0)))
- plus:setText("add")
- orxonox.KeyBinderManager:getInstance():subscribeEventHelper(plus, "Clicked", P.filename .. ".KeyBindPlus_clicked")
- line:addChildWindow(plus)
- offset = offset + addWidth + spaceWidth
-
- local numButtons = orxonox.KeyBinderManager:getInstance():getCurrent():getNumberOfBindings(commandList[k]);
- for i=0,(numButtons-1) do
- local button = winMgr:createWindow("TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Button" .. i)
- local name = orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[k],i)
- name = P.KeyNameNiceifier(name)
- button:setText(name)
- sampleWindow:setText(name)
- local size = getMinTextSize(sampleWindow)
- local buttonWidth = size[2]
- button:setSize(CEGUI.UVector2(CEGUI.UDim(0, buttonWidth), CEGUI.UDim(0.7, 0)))
- button:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0)))
- orxonox.KeyBinderManager:getInstance():subscribeEventHelper(button, "Clicked", P.filename .. ".KeyBindButton_clicked")
- --button:subscribeScriptedEvent("EventClicked", P.filename .. ".KeyBindButton_clicked")
- line:addChildWindow(button)
- offset = offset + buttonWidth
-
- local clear = winMgr:createWindow("TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Clear" .. i)
- clear:setSize(CEGUI.UVector2(CEGUI.UDim(0, clearWidth), CEGUI.UDim(0.7, 0)))
- clear:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0)))
- clear:setText("X")
- orxonox.KeyBinderManager:getInstance():subscribeEventHelper(clear, "Clicked", P.filename .. ".KeyBindClear_clicked")
- line:addChildWindow(clear)
- offset = offset + clearWidth + spaceWidth
- end
-
- line:setWidth(CEGUI.UDim(0, offset+clearWidth))
-
- return line
-end
-
-function P.createLines()
- local window = winMgr:getWindow("orxonox/KeyBindPane")
-
- for k,v in pairs(commandList) do
- local line = P.createLine(k)
- table.insert(linesList, line)
- window:addChildWindow(line)
- end
-
- pane = tolua.cast(window, "CEGUI::ScrollablePane")
- pane:setVerticalStepSize(getScrollingStepSize(window))
-end
-
-function P.KeyBindButton_clicked(e)
- local we = CEGUI.toWindowEventArgs(e)
- local name = we.window:getName()
-
- local match = string.gmatch(name, "%d+")
- local commandNr = tonumber(match())
- local buttonNr = tonumber(match())
-
- local arguments = {}
- arguments[1] = commandNr
- arguments[2] = buttonNr
- openInfoPopup("Press any button/key or move a mouse/joystick axis.", KeyBindMenu.keybind, false, arguments)
-end
-
-function P.KeyBindPlus_clicked(e)
- local we = CEGUI.toWindowEventArgs(e)
- local name = we.window:getName()
-
- local match = string.gmatch(name, "%d+")
- local commandNr = tonumber(match())
-
- local arguments = {}
- arguments[1] = commandNr
- openInfoPopup("Press any button/key or move a mouse/joystick axis.", KeyBindMenu.keybind, false, arguments)
-end
-
-function P.KeyBindClear_clicked(e)
- local we = CEGUI.toWindowEventArgs(e)
- local name = we.window:getName()
-
- local match = string.gmatch(name, "%d+")
- local commandNr = tonumber(match())
- local buttonNr = tonumber(match())
-
- orxonox.KeyBinderManager:getInstance():unbind(orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[commandNr], buttonNr))
-
- P.callback()
-end
-
-function P.keybind(arguments)
- local commandNr = arguments[1]
- local buttonNr = arguments[2]
- if buttonNr ~= nil then
- orxonox.KeyBinderManager:getInstance():unbind(orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[commandNr], buttonNr))
- end
-
- orxonox.KeyBinderManager:getInstance():keybind(commandList[commandNr])
-end
-
-function P.callback()
- local pane = tolua.cast(winMgr:getWindow("orxonox/KeyBindPane"), "CEGUI::ScrollablePane")
- local position = pane:getVerticalScrollPosition()
- while table.getn(linesList) ~= 0 do
- if linesList[1] ~= nil then
- winMgr:destroyWindow(linesList[1]:getName())
- end
- table.remove(linesList, 1)
- end
-
- linesList = {}
-
- P.createLines()
- if(InfoPopup ~= nil) then
- InfoPopup.close()
- end
- pane:setVerticalScrollPosition( position )
-end
-
-function P.KeyBindBackButton_clicked(e)
- hideGUI("KeyBindMenu")
-end
-
-return P
+-- KeyBindMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+
+if _REQUIREDNAME == nil then
+ KeyBindMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "KeyBindMenu"
+P.layoutString = "KeyBindMenu.layout"
+
+function P:init()
+
+ commandList = {}
+ table.insert(commandList, "fire 0")
+ table.insert(commandList, "fire 1 | unfire")
+ table.insert(commandList, "onpress fire 2")
+ table.insert(commandList, "scale 1 moveFrontBack")
+ table.insert(commandList, "scale -1 moveFrontBack")
+ table.insert(commandList, "boost")
+ table.insert(commandList, "scale 1 moveRightLeft")
+ table.insert(commandList, "scale -1 moveRightLeft")
+ table.insert(commandList, "scale 1 moveUpDown")
+ table.insert(commandList, "scale -1 moveUpDown")
+ table.insert(commandList, "scale -1 rotateRoll")
+ table.insert(commandList, "scale 1 rotateRoll")
+ table.insert(commandList, "scale 1 rotateYaw")
+ table.insert(commandList, "scale -1 rotateYaw")
+ table.insert(commandList, "scale 1 rotatePitch")
+ table.insert(commandList, "scale -1 rotatePitch")
+ table.insert(commandList, "NewHumanController changeMode")
+ table.insert(commandList, "switchCamera")
+ table.insert(commandList, "openConsole")
+ table.insert(commandList, "OverlayGroup toggleVisibility Debug")
+ table.insert(commandList, "OverlayGroup toggleVisibility Stats")
+ table.insert(commandList, "mouseLook")
+ table.insert(commandList, "pause")
+
+ nameList = {}
+ table.insert(nameList, "Primary Fire")
+ table.insert(nameList, "Secondary Fire")
+ table.insert(nameList, "Fire Rocket")
+ table.insert(nameList, "Accelerate")
+ table.insert(nameList, "Break")
+ table.insert(nameList, "Boost")
+ table.insert(nameList, "Move Right")
+ table.insert(nameList, "Move Left")
+ table.insert(nameList, "Move Up")
+ table.insert(nameList, "Move Down")
+ table.insert(nameList, "Roll Right")
+ table.insert(nameList, "Roll Left")
+ table.insert(nameList, "Yaw Left")
+ table.insert(nameList, "Yaw Right")
+ table.insert(nameList, "Pitch Up")
+ table.insert(nameList, "Pitch Down")
+ table.insert(nameList, "Switch Input Mode")
+ table.insert(nameList, "Switch Camera")
+ table.insert(nameList, "Open Console")
+ table.insert(nameList, "Show Debug")
+ table.insert(nameList, "Show Stats")
+ table.insert(nameList, "Look Around")
+ table.insert(nameList, "Pause")
+
+ linesList = {}
+
+ --Calculate design parameters:
+ sampleWindow = winMgr:createWindow("TaharezLook/StaticText", "orxonox/KeyBindPane/SampleWindow")
+ sampleWindow:setText("SampleText")
+
+ local size = getMinTextSize(sampleWindow)
+ lineHeight = size[1]
+
+ commandWidth = 0
+ for k,v in pairs(commandList) do
+ sampleWindow:setText(nameList[k])
+ size = getMinTextSize(sampleWindow)
+ if size[2] > commandWidth then
+ commandWidth = size[2]
+ end
+ end
+
+ sampleWindow:setText("add")
+ size = getMinTextSize(sampleWindow)
+ addWidth = size[2]
+
+ sampleWindow:setText("X")
+ size = getMinTextSize(sampleWindow)
+ clearWidth = size[2]
+
+ spaceWidth = math.floor(1/14*commandWidth)
+
+ buttonWidth = 145
+
+ P.createLines()
+
+ local funct = luaState:createLuaFunctor("KeyBindMenu.callback()")
+ orxonox.KeyBinderManager:getInstance():registerKeybindCallback(funct)
+end
+
+function P.KeyNameNiceifier(key)
+ local name = string.sub(key, string.find(key, '%.(.*)')+1)
+ local group = string.sub(key, string.find(key, '(.*)%.'))
+ group = string.sub(group,1,string.len(group)-1)
+ if( group == "Keys") then
+ return "Key " .. string.sub(name, string.find(name, 'Key(.*)')+3)
+ elseif( group == "MouseButtons") then
+ return "Mouse " .. name
+ elseif( string.find(group, "JoyStickButtons") ~= nil ) then
+ return "Joystick " .. name
+ elseif( string.find(group, "JoyStickAxes") ~= nil ) then
+ return "Joystick Axis" .. string.sub(name, 5, 6) .. string.sub(name, string.find(name, 'Axis%d%d(.*)')+6)
+ elseif( group == "MouseAxes" ) then
+ return "Mouse " .. string.sub(name, string.find(name, '.(.*)')+1) .. " " .. string.sub(name, 1, 1) .. "-Axis"
+ end
+ return key
+end
+
+function P.createLine(k)
+ local offset = 0
+ local line = winMgr:createWindow("DefaultWindow", "orxonox/KeyBindPane/Binding" .. k)
+ line:setHeight(CEGUI.UDim(0, lineHeight))
+ line:setPosition(CEGUI.UVector2(CEGUI.UDim(0, 0), CEGUI.UDim(0, lineHeight*(k-1))))
+
+ local command = winMgr:createWindow("TaharezLook/StaticText", "orxonox/KeyBindPane/Binding" .. k .. "/Command")
+ command:setText(nameList[k])
+ command:setSize(CEGUI.UVector2(CEGUI.UDim(0, commandWidth), CEGUI.UDim(1, 0)))
+ command:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0, 0)))
+ line:addChildWindow(command)
+ offset = offset + commandWidth + spaceWidth
+
+ local plus = winMgr:createWindow("TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Plus")
+ plus:setSize(CEGUI.UVector2(CEGUI.UDim(0, addWidth), CEGUI.UDim(0.7, 0)))
+ plus:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0)))
+ plus:setText("add")
+ orxonox.KeyBinderManager:getInstance():subscribeEventHelper(plus, "Clicked", P.filename .. ".KeyBindPlus_clicked")
+ line:addChildWindow(plus)
+ offset = offset + addWidth + spaceWidth
+
+ local numButtons = orxonox.KeyBinderManager:getInstance():getCurrent():getNumberOfBindings(commandList[k]);
+ for i=0,(numButtons-1) do
+ local button = winMgr:createWindow("TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Button" .. i)
+ local name = orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[k],i)
+ name = P.KeyNameNiceifier(name)
+ button:setText(name)
+ sampleWindow:setText(name)
+ local size = getMinTextSize(sampleWindow)
+ local buttonWidth = size[2]
+ button:setSize(CEGUI.UVector2(CEGUI.UDim(0, buttonWidth), CEGUI.UDim(0.7, 0)))
+ button:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0)))
+ orxonox.KeyBinderManager:getInstance():subscribeEventHelper(button, "Clicked", P.filename .. ".KeyBindButton_clicked")
+ --button:subscribeScriptedEvent("EventClicked", P.filename .. ".KeyBindButton_clicked")
+ line:addChildWindow(button)
+ offset = offset + buttonWidth
+
+ local clear = winMgr:createWindow("TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Clear" .. i)
+ clear:setSize(CEGUI.UVector2(CEGUI.UDim(0, clearWidth), CEGUI.UDim(0.7, 0)))
+ clear:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0)))
+ clear:setText("X")
+ orxonox.KeyBinderManager:getInstance():subscribeEventHelper(clear, "Clicked", P.filename .. ".KeyBindClear_clicked")
+ line:addChildWindow(clear)
+ offset = offset + clearWidth + spaceWidth
+ end
+
+ line:setWidth(CEGUI.UDim(0, offset+clearWidth))
+
+ return line
+end
+
+function P.createLines()
+ local window = winMgr:getWindow("orxonox/KeyBindPane")
+
+ for k,v in pairs(commandList) do
+ local line = P.createLine(k)
+ table.insert(linesList, line)
+ window:addChildWindow(line)
+ end
+
+ pane = tolua.cast(window, "CEGUI::ScrollablePane")
+ pane:setVerticalStepSize(getScrollingStepSize(window))
+end
+
+function P.KeyBindButton_clicked(e)
+ local we = CEGUI.toWindowEventArgs(e)
+ local name = we.window:getName()
+
+ local match = string.gmatch(name, "%d+")
+ local commandNr = tonumber(match())
+ local buttonNr = tonumber(match())
+
+ local arguments = {}
+ arguments[1] = commandNr
+ arguments[2] = buttonNr
+ openInfoPopup("Press any button/key or move a mouse/joystick axis.", KeyBindMenu.keybind, false, arguments)
+end
+
+function P.KeyBindPlus_clicked(e)
+ local we = CEGUI.toWindowEventArgs(e)
+ local name = we.window:getName()
+
+ local match = string.gmatch(name, "%d+")
+ local commandNr = tonumber(match())
+
+ local arguments = {}
+ arguments[1] = commandNr
+ openInfoPopup("Press any button/key or move a mouse/joystick axis.", KeyBindMenu.keybind, false, arguments)
+end
+
+function P.KeyBindClear_clicked(e)
+ local we = CEGUI.toWindowEventArgs(e)
+ local name = we.window:getName()
+
+ local match = string.gmatch(name, "%d+")
+ local commandNr = tonumber(match())
+ local buttonNr = tonumber(match())
+
+ orxonox.KeyBinderManager:getInstance():unbind(orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[commandNr], buttonNr))
+
+ P.callback()
+end
+
+function P.keybind(arguments)
+ local commandNr = arguments[1]
+ local buttonNr = arguments[2]
+ if buttonNr ~= nil then
+ orxonox.KeyBinderManager:getInstance():unbind(orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[commandNr], buttonNr))
+ end
+
+ orxonox.KeyBinderManager:getInstance():keybind(commandList[commandNr])
+end
+
+function P.callback()
+ local pane = tolua.cast(winMgr:getWindow("orxonox/KeyBindPane"), "CEGUI::ScrollablePane")
+ local position = pane:getVerticalScrollPosition()
+ while table.getn(linesList) ~= 0 do
+ if linesList[1] ~= nil then
+ winMgr:destroyWindow(linesList[1]:getName())
+ end
+ table.remove(linesList, 1)
+ end
+
+ linesList = {}
+
+ P.createLines()
+ if(InfoPopup ~= nil) then
+ InfoPopup.close()
+ end
+ pane:setVerticalScrollPosition( position )
+end
+
+function P.KeyBindBackButton_clicked(e)
+ hideGUI("KeyBindMenu")
+end
+
+return P
Property changes on: code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
___________________________________________________________________
Deleted: svn:executable
- *
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,110 +1,110 @@
--- MouseControlsMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- MouseControlsMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "MouseControlsMenu"
-P.layoutString = "MouseControlsMenu.layout"
-
-function P:init()
- block = false
- mousenormalscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MouseNormalScrollbar"),"CEGUI::Scrollbar")
- mousederivescrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MouseDeriveScrollbar"),"CEGUI::Scrollbar")
- normalwindow = tolua.cast(winMgr:getWindow("orxonox/MouseNormalButton"),"CEGUI::RadioButton")
- derivewindow = tolua.cast(winMgr:getWindow("orxonox/MouseDeriveButton"),"CEGUI::RadioButton")
- invertwindow = tolua.cast(winMgr:getWindow("orxonox/MouseInvertCheckbox"),"CEGUI::Checkbox")
- mousenormalscrollbar_active = false
- mousederivescrollbar_active = false
- derive_active = orxonox.getConfig("KeyBinder","bDeriveMouseInput_")
- invert_active = false
- mousenormalsensitivity = orxonox.getConfig("KeyBinder","mouseSensitivity_")
- mousederivesensitivity = orxonox.getConfig("KeyBinder","mouseSensitivityDerived_")
- mousenormalscrollbarwindow:setScrollPosition((math.log(14*mousenormalsensitivity-6))/(6*math.log(2)))
- mousederivescrollbarwindow:setScrollPosition((math.log(14*mousederivesensitivity-6))/(6*math.log(2)))
- if derive_active == "true" then
- normal_active = false
- derive_active = true
- derivewindow:setSelected(derive_active)
- else
- normal_active = true
- derive_active = false
- normalwindow:setSelected(normal_active)
- end
- if invert_active == "true" then
- invert_active = true
- else
- invert_active = false
- end
-end
-
-function P.MouseControlsMouseNormalScrollbar_changed(e)
- if mousenormalscrollbar_active == false then
- scrollposition = mousenormalscrollbarwindow:getScrollPosition()
- mousenormalsensitivity = (math.pow(64,scrollposition)+6)/14
- orxonox.CommandExecutor:execute("config KeyBinder mouseSensitivity_ " .. mousenormalsensitivity)
- end
-end
-
-function P.MouseControlsMouseNormalScrollbar_started(e)
- mousenormalscrollbar_active = true
-end
-
-function P.MouseControlsMouseNormalScrollbar_ended(e)
- scrollposition = mousenormalscrollbarwindow:getScrollPosition()
- mousenormalsensitivity = (math.pow(64,scrollposition)+6)/14
- orxonox.CommandExecutor:execute("config KeyBinder mouseSensitivity_ " .. mousenormalsensitivity)
- mousenormalscrollbar_active = false
-end
-
-function P.MouseControlsMouseDeriveScrollbar_changed(e)
- if mousederivescrollbar_active == false then
- scrollposition = mousederivescrollbarwindow:getScrollPosition()
- mousederivesensitivity = (math.pow(64,scrollposition)+6)/14
- orxonox.CommandExecutor:execute("config KeyBinder mouseSensitivityDerived_ " .. mousederivesensitivity)
- end
-end
-
-function P.MouseControlsMouseDeriveScrollbar_started(e)
- mousederivescrollbar_active = true
-end
-
-function P.MouseControlsMouseDeriveScrollbar_ended(e)
- scrollposition = mousederivescrollbarwindow:getScrollPosition()
- mousederivesensitivity = (math.pow(64,scrollposition)+6)/14
- orxonox.CommandExecutor:execute("config KeyBinder mouseSensitivityDerived_ " .. mousederivesensitivity)
- mousederivescrollbar_active = false
-end
-
-function P.MouseNormalButton_clicked(e)
- if block == false then
- block = true
- derivewindow:setSelected(false)
- block = false
- orxonox.CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ false")
- end
-end
-
-function P.MouseDeriveButton_clicked(e)
- if block == false then
- block = true
- normalwindow:setSelected(false)
- block = false
- orxonox.CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ true")
- end
-end
-
-function P.MouseInvertCheckbox_clicked(e)
- -- invert mouse
-end
-
-function P.MouseControlsBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- MouseControlsMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ MouseControlsMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "MouseControlsMenu"
+P.layoutString = "MouseControlsMenu.layout"
+
+function P:init()
+ block = false
+ mousenormalscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MouseNormalScrollbar"),"CEGUI::Scrollbar")
+ mousederivescrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MouseDeriveScrollbar"),"CEGUI::Scrollbar")
+ normalwindow = tolua.cast(winMgr:getWindow("orxonox/MouseNormalButton"),"CEGUI::RadioButton")
+ derivewindow = tolua.cast(winMgr:getWindow("orxonox/MouseDeriveButton"),"CEGUI::RadioButton")
+ invertwindow = tolua.cast(winMgr:getWindow("orxonox/MouseInvertCheckbox"),"CEGUI::Checkbox")
+ mousenormalscrollbar_active = false
+ mousederivescrollbar_active = false
+ derive_active = orxonox.getConfig("KeyBinder","bDeriveMouseInput_")
+ invert_active = false
+ mousenormalsensitivity = orxonox.getConfig("KeyBinder","mouseSensitivity_")
+ mousederivesensitivity = orxonox.getConfig("KeyBinder","mouseSensitivityDerived_")
+ mousenormalscrollbarwindow:setScrollPosition((math.log(14*mousenormalsensitivity-6))/(6*math.log(2)))
+ mousederivescrollbarwindow:setScrollPosition((math.log(14*mousederivesensitivity-6))/(6*math.log(2)))
+ if derive_active == "true" then
+ normal_active = false
+ derive_active = true
+ derivewindow:setSelected(derive_active)
+ else
+ normal_active = true
+ derive_active = false
+ normalwindow:setSelected(normal_active)
+ end
+ if invert_active == "true" then
+ invert_active = true
+ else
+ invert_active = false
+ end
+end
+
+function P.MouseControlsMouseNormalScrollbar_changed(e)
+ if mousenormalscrollbar_active == false then
+ scrollposition = mousenormalscrollbarwindow:getScrollPosition()
+ mousenormalsensitivity = (math.pow(64,scrollposition)+6)/14
+ orxonox.CommandExecutor:execute("config KeyBinder mouseSensitivity_ " .. mousenormalsensitivity)
+ end
+end
+
+function P.MouseControlsMouseNormalScrollbar_started(e)
+ mousenormalscrollbar_active = true
+end
+
+function P.MouseControlsMouseNormalScrollbar_ended(e)
+ scrollposition = mousenormalscrollbarwindow:getScrollPosition()
+ mousenormalsensitivity = (math.pow(64,scrollposition)+6)/14
+ orxonox.CommandExecutor:execute("config KeyBinder mouseSensitivity_ " .. mousenormalsensitivity)
+ mousenormalscrollbar_active = false
+end
+
+function P.MouseControlsMouseDeriveScrollbar_changed(e)
+ if mousederivescrollbar_active == false then
+ scrollposition = mousederivescrollbarwindow:getScrollPosition()
+ mousederivesensitivity = (math.pow(64,scrollposition)+6)/14
+ orxonox.CommandExecutor:execute("config KeyBinder mouseSensitivityDerived_ " .. mousederivesensitivity)
+ end
+end
+
+function P.MouseControlsMouseDeriveScrollbar_started(e)
+ mousederivescrollbar_active = true
+end
+
+function P.MouseControlsMouseDeriveScrollbar_ended(e)
+ scrollposition = mousederivescrollbarwindow:getScrollPosition()
+ mousederivesensitivity = (math.pow(64,scrollposition)+6)/14
+ orxonox.CommandExecutor:execute("config KeyBinder mouseSensitivityDerived_ " .. mousederivesensitivity)
+ mousederivescrollbar_active = false
+end
+
+function P.MouseNormalButton_clicked(e)
+ if block == false then
+ block = true
+ derivewindow:setSelected(false)
+ block = false
+ orxonox.CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ false")
+ end
+end
+
+function P.MouseDeriveButton_clicked(e)
+ if block == false then
+ block = true
+ normalwindow:setSelected(false)
+ block = false
+ orxonox.CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ true")
+ end
+end
+
+function P.MouseInvertCheckbox_clicked(e)
+ -- invert mouse
+end
+
+function P.MouseControlsBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/MultiplayerMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/MultiplayerMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/MultiplayerMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,82 +1,82 @@
--- MultiplayerMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- MultiplayerMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "MultiplayerMenu"
-P.layoutString = "MultiplayerMenu.layout"
-
-function P:init()
- listbox = winMgr:getWindow("orxonox/MultiplayerLevelListbox")
- preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
- orxonox.LevelManager:getInstance():compileAvailableLevelList()
- local levelList = {}
- local index = 0
- local level = ""
- while true do
- level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index)
- if level == "" then
- break
- end
- table.insert(levelList, level)
- index = index + 1
- end
- table.sort(levelList)
- for k,v in pairs(levelList) do
- item = CEGUI.createListboxTextItem(v)
- item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
- CEGUI.toListbox(listbox):addItem(item)
- if v .. ".oxw" == preselect then
- listbox:setItemSelectState(item, true)
- end
- end
- local multiplayerMode = "startClient"
- if multiplayerMode == "startClient" then
- window = winMgr:getWindow("orxonox/MultiplayerJoinButton")
- button = tolua.cast(window,"CEGUI::RadioButton")
- button:setSelected(true)
- end
- if multiplayerMode == "startServer" then
- window = winMgr:getWindow("orxonox/MultiplayerHostButton")
- button = tolua.cast(window,"CEGUI::RadioButton")
- button:setSelected(true)
- end
- if multiplayerMode == "startDedicated" then
- window = winMgr:getWindow("orxonox/MultiplayerDedicatedButton")
- button = tolua.cast(window,"CEGUI::RadioButton")
- button:setSelected(true)
- end
-end
-
-function P.MultiplayerJoinButton_clicked(e)
- multiplayerMode = "startClient"
-end
-
-function P.MultiplayerHostButton_clicked(e)
- multiplayerMode = "startServer"
-end
-
-function P.MultiplayerDedicatedButton_clicked(e)
- multiplayerMode = "startDedicated"
-end
-
-function P.MultiplayerStartButton_clicked(e)
- local choice = winMgr:getWindow("orxonox/MultiplayerLevelListbox"):getFirstSelectedItem()
- if choice then
- orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
- orxonox.CommandExecutor:execute(multiplayerMode)
- hideAllGUIs()
- end
-end
-
-function P.MultiplayerBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- MultiplayerMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ MultiplayerMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "MultiplayerMenu"
+P.layoutString = "MultiplayerMenu.layout"
+
+function P:init()
+ listbox = winMgr:getWindow("orxonox/MultiplayerLevelListbox")
+ preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
+ orxonox.LevelManager:getInstance():compileAvailableLevelList()
+ local levelList = {}
+ local index = 0
+ local level = ""
+ while true do
+ level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index)
+ if level == "" then
+ break
+ end
+ table.insert(levelList, level)
+ index = index + 1
+ end
+ table.sort(levelList)
+ for k,v in pairs(levelList) do
+ item = CEGUI.createListboxTextItem(v)
+ item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
+ CEGUI.toListbox(listbox):addItem(item)
+ if v .. ".oxw" == preselect then
+ listbox:setItemSelectState(item, true)
+ end
+ end
+ local multiplayerMode = "startClient"
+ if multiplayerMode == "startClient" then
+ window = winMgr:getWindow("orxonox/MultiplayerJoinButton")
+ button = tolua.cast(window,"CEGUI::RadioButton")
+ button:setSelected(true)
+ end
+ if multiplayerMode == "startServer" then
+ window = winMgr:getWindow("orxonox/MultiplayerHostButton")
+ button = tolua.cast(window,"CEGUI::RadioButton")
+ button:setSelected(true)
+ end
+ if multiplayerMode == "startDedicated" then
+ window = winMgr:getWindow("orxonox/MultiplayerDedicatedButton")
+ button = tolua.cast(window,"CEGUI::RadioButton")
+ button:setSelected(true)
+ end
+end
+
+function P.MultiplayerJoinButton_clicked(e)
+ multiplayerMode = "startClient"
+end
+
+function P.MultiplayerHostButton_clicked(e)
+ multiplayerMode = "startServer"
+end
+
+function P.MultiplayerDedicatedButton_clicked(e)
+ multiplayerMode = "startDedicated"
+end
+
+function P.MultiplayerStartButton_clicked(e)
+ local choice = winMgr:getWindow("orxonox/MultiplayerLevelListbox"):getFirstSelectedItem()
+ if choice then
+ orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
+ orxonox.CommandExecutor:execute(multiplayerMode)
+ hideAllGUIs()
+ end
+end
+
+function P.MultiplayerBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/MultiplayerMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/MultiplayerOptionsMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/MultiplayerOptionsMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/MultiplayerOptionsMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,18 +1,18 @@
--- MultiplayerOptionsMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- MultiplayerOptionsMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "MultiplayerOptionsMenu"
-P.layoutString = "MultiplayerOptionsMenu.layout"
-
-function P.MultiplayerOptionsBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
+-- MultiplayerOptionsMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ MultiplayerOptionsMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "MultiplayerOptionsMenu"
+P.layoutString = "MultiplayerOptionsMenu.layout"
+
+function P.MultiplayerOptionsBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
Property changes on: code/branches/presentation2/data/gui/scripts/MultiplayerOptionsMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/SettingsMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/SettingsMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/SettingsMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,44 +1,44 @@
--- SettingsMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- SettingsMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "SettingsMenu"
-P.layoutString = "SettingsMenu.layout"
-
-function P.SettingsGameplayButton_clicked(e)
- showGUI("GameplayMenu", true)
-end
-
-function P.SettingsMultiplayerOptionsButton_clicked(e)
- showGUI("MultiplayerOptionsMenu", true)
-end
-
-function P.SettingsControlsButton_clicked(e)
- showGUI("ControlsMenu", true)
-end
-
-function P.SettingsGraphicsButton_clicked(e)
- showGUI("GraphicsMenu", true)
-end
-
-function P.SettingsAudioButton_clicked(e)
- showGUI("AudioMenu", true)
-end
-
-function P.SettingsResetSettingsButton_clicked(e)
- -- reset settings
- debug("event: reset settings")
-end
-
-function P.SettingsBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- SettingsMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ SettingsMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "SettingsMenu"
+P.layoutString = "SettingsMenu.layout"
+
+function P.SettingsGameplayButton_clicked(e)
+ showGUI("GameplayMenu", true)
+end
+
+function P.SettingsMultiplayerOptionsButton_clicked(e)
+ showGUI("MultiplayerOptionsMenu", true)
+end
+
+function P.SettingsControlsButton_clicked(e)
+ showGUI("ControlsMenu", true)
+end
+
+function P.SettingsGraphicsButton_clicked(e)
+ showGUI("GraphicsMenu", true)
+end
+
+function P.SettingsAudioButton_clicked(e)
+ showGUI("AudioMenu", true)
+end
+
+function P.SettingsResetSettingsButton_clicked(e)
+ -- reset settings
+ debug("event: reset settings")
+end
+
+function P.SettingsBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/SettingsMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/gui/scripts/SingleplayerMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/SingleplayerMenu.lua 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/gui/scripts/SingleplayerMenu.lua 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,54 +1,54 @@
--- SingleplayerMenu.lua
-
-BasicGUI = require("BasicGUI")
-local P = BasicGUI:new() --inherit everything from the gui package
-if _REQUIREDNAME == nil then
- SingleplayerMenu = P
-else
- _G[_REQUIREDNAME] = P
-end
-
-P.filename = "SingleplayerMenu"
-P.layoutString = "SingleplayerMenu.layout"
-
-function P:init()
- listbox = winMgr:getWindow("orxonox/SingleplayerLevelListbox")
- preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
- orxonox.LevelManager:getInstance():compileAvailableLevelList()
- local levelList = {}
- local index = 0
- local level = ""
- while true do
- level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index)
- if level == "" then
- break
- end
- table.insert(levelList, level)
- index = index + 1
- end
- table.sort(levelList)
- for k,v in pairs(levelList) do
- item = CEGUI.createListboxTextItem(v)
- item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
- CEGUI.toListbox(listbox):addItem(item)
- if v .. ".oxw" == preselect then
- listbox:setItemSelectState(item, true)
- end
- end
-end
-
-function P.SingleplayerStartButton_clicked(e)
- choice = winMgr:getWindow("orxonox/SingleplayerLevelListbox"):getFirstSelectedItem()
- if choice then
- orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
- orxonox.CommandExecutor:execute("startGame")
- hideAllGUIs()
- end
-end
-
-function P.SingleplayerBackButton_clicked(e)
- hideGUI(P.filename)
-end
-
-return P
-
+-- SingleplayerMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ SingleplayerMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "SingleplayerMenu"
+P.layoutString = "SingleplayerMenu.layout"
+
+function P:init()
+ listbox = winMgr:getWindow("orxonox/SingleplayerLevelListbox")
+ preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
+ orxonox.LevelManager:getInstance():compileAvailableLevelList()
+ local levelList = {}
+ local index = 0
+ local level = ""
+ while true do
+ level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index)
+ if level == "" then
+ break
+ end
+ table.insert(levelList, level)
+ index = index + 1
+ end
+ table.sort(levelList)
+ for k,v in pairs(levelList) do
+ item = CEGUI.createListboxTextItem(v)
+ item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
+ CEGUI.toListbox(listbox):addItem(item)
+ if v .. ".oxw" == preselect then
+ listbox:setItemSelectState(item, true)
+ end
+ end
+end
+
+function P.SingleplayerStartButton_clicked(e)
+ choice = winMgr:getWindow("orxonox/SingleplayerLevelListbox"):getFirstSelectedItem()
+ if choice then
+ orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
+ orxonox.CommandExecutor:execute("startGame")
+ hideAllGUIs()
+ end
+end
+
+function P.SingleplayerBackButton_clicked(e)
+ hideGUI(P.filename)
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/SingleplayerMenu.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/levels/includes/weaponsettings_HXY.oxi
===================================================================
--- code/branches/presentation2/data/levels/includes/weaponsettings_HXY.oxi 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/levels/includes/weaponsettings_HXY.oxi 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,26 +1,26 @@
- <weaponslots>
- <WeaponSlot position=" 6,-2,2" />
- <WeaponSlot position="-6,-2,2" />
- </weaponslots>
- <weaponsets>
- <WeaponSet firemode=0 />
- <WeaponSet firemode=1 />
- </weaponsets>
- <weapons>
- <WeaponPack>
- <links>
- <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
- <DefaultWeaponmodeLink firemode=1 weaponmode=1 />
- </links>
- <Weapon>
- <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
- <HsW01 mode=0 munitionpershot=0 delay=0.1 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />
- <LightningGun mode=1 muzzleoffset="0,0,0" />
- </Weapon>
- <Weapon>
- <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
- <HsW01 mode=0 munitionpershot=0 delay=0.1 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />
- <LightningGun mode=1 muzzleoffset="0,0,0" />
- </Weapon>
- </WeaponPack>
- </weapons>
+ <weaponslots>
+ <WeaponSlot position=" 6,-2,2" />
+ <WeaponSlot position="-6,-2,2" />
+ </weaponslots>
+ <weaponsets>
+ <WeaponSet firemode=0 />
+ <WeaponSet firemode=1 />
+ </weaponsets>
+ <weapons>
+ <WeaponPack>
+ <links>
+ <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
+ <DefaultWeaponmodeLink firemode=1 weaponmode=1 />
+ </links>
+ <Weapon>
+ <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
+ <HsW01 mode=0 munitionpershot=0 delay=0.1 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />
+ <LightningGun mode=1 muzzleoffset="0,0,0" />
+ </Weapon>
+ <Weapon>
+ <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
+ <HsW01 mode=0 munitionpershot=0 delay=0.1 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />
+ <LightningGun mode=1 muzzleoffset="0,0,0" />
+ </Weapon>
+ </WeaponPack>
+ </weapons>
Property changes on: code/branches/presentation2/data/levels/includes/weaponsettings_HXY.oxi
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/levels/includes/weaponsettings_Transporter.oxi
===================================================================
--- code/branches/presentation2/data/levels/includes/weaponsettings_Transporter.oxi 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/levels/includes/weaponsettings_Transporter.oxi 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,26 +1,26 @@
- <weaponslots>
- <WeaponSlot position=" 55,-10,20" />
- <WeaponSlot position="-55,-10,20" />
- </weaponslots>
- <weaponsets>
- <WeaponSet firemode=0 />
- <WeaponSet firemode=1 />
- </weaponsets>
- <weapons>
- <WeaponPack>
- <links>
- <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
- <DefaultWeaponmodeLink firemode=1 weaponmode=1 />
- </links>
- <Weapon>
- <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
- <HsW01 mode=0 munitionpershot=0 delay=0.1 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />
- <LightningGun mode=1 muzzleoffset="0,0,0" />
- </Weapon>
- <Weapon>
- <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
- <HsW01 mode=0 munitionpershot=0 delay=0.1 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />
- <LightningGun mode=1 muzzleoffset="0,0,0" />
- </Weapon>
- </WeaponPack>
- </weapons>
+ <weaponslots>
+ <WeaponSlot position=" 55,-10,20" />
+ <WeaponSlot position="-55,-10,20" />
+ </weaponslots>
+ <weaponsets>
+ <WeaponSet firemode=0 />
+ <WeaponSet firemode=1 />
+ </weaponsets>
+ <weapons>
+ <WeaponPack>
+ <links>
+ <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
+ <DefaultWeaponmodeLink firemode=1 weaponmode=1 />
+ </links>
+ <Weapon>
+ <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
+ <HsW01 mode=0 munitionpershot=0 delay=0.1 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />
+ <LightningGun mode=1 muzzleoffset="0,0,0" />
+ </Weapon>
+ <Weapon>
+ <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
+ <HsW01 mode=0 munitionpershot=0 delay=0.1 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />
+ <LightningGun mode=1 muzzleoffset="0,0,0" />
+ </Weapon>
+ </WeaponPack>
+ </weapons>
Property changes on: code/branches/presentation2/data/levels/includes/weaponsettings_Transporter.oxi
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/levels/presentationHS09.oxw
===================================================================
--- code/branches/presentation2/data/levels/presentationHS09.oxw 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/levels/presentationHS09.oxw 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,410 +1,410 @@
-<?lua
- include("hudtemplates3.oxo")
- include("stats.oxo")
- include("templates/spaceship_assff.oxt")
- include("templates/spaceship_H2.oxt")
- include("templates/spaceship_pirate.oxt")
-?>
-
-<Level
- name = "Presentation09"
- description = "presentation level for Orxonox Convention X"
- gametype = TeamDeathmatch
- hasPhysics = true
->
- <Scene
- ambientlight = "0.6, 0.4, 0.4"
- skybox = "Orxonox/skypanoramagen2"
- >
- <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="0.8, 0.5, 0.5, 1.0" specular="0.8, 0.4, 0.4, 1.0" />
-
- <Template name="JumpItem" baseclass="Jump">
- <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />
- </Template>
- <Template name="HealthImmediateItem" baseclass="HealthImmediate">
- <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />
- </Template>
- <Template name="HealthUsableItem" baseclass="HealthUsable">
- <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />
- </Template>
-
- <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff />
-
-
-
- <SpaceShip position="-3900,3000,1000">
- <templates>
- <Template link=spaceshipHtwo/>
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=100 team=0>
- <waypoints>
- <StaticEntity position="-3850,2800,1450" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-
- <SpaceShip position="-4100,2600,1600">
- <templates>
- <Template link=spaceshipHtwo/>
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=100 team=0>
- <waypoints>
- <StaticEntity position="-3850,2800,1450" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-
- <SpaceShip position="-4000,2500,1500">
- <templates>
- <Template link=spaceshipHtwo/>
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=100 team=0>
- <waypoints>
- <StaticEntity position="-3850,2800,1450" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-
- <SpaceShip position="-4100,2700,1500">
- <templates>
- <Template link=spaceshipHtwo/>
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=100 team=0 />
- </controller>
- </SpaceShip>
-
- <SpaceShip position="-4150,2750,1550">
- <templates>
- <Template link=spaceshipHtwo/>
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=100 team=0 />
- </controller>
- </SpaceShip>
-
- <Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" />
-
- <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500">
- <attached>
- <!--<Model mesh="jumpthrust.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />-->
- </attached>
- </PickupSpawner>
-
- <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550">
- <attached>
- <Model mesh="gwrench.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" />
- </attached>
- </PickupSpawner>
-
- <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400">
- <attached>
- <Model mesh="gwrench.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" />
- </attached>
- </PickupSpawner>
-
- <Billboard position="-2500, 2400, 1500" material="Examples/Flare" />
- <EventDispatcher>
- <targets>
- <EventTarget target=pirates />
- </targets>
- <events>
- <activity>
- <DistanceTrigger position="-2500, 2400, 1500" distance=250 target="SpaceShip" stayactive=true />
- </activity>
- </events>
- </EventDispatcher>
-
-<?lua
-for i = 1, 10, 1
-do
-?>
- <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
- <templates>
- <Template link=spaceshippirate />
- </templates>
- <controller>
- <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
- <waypoints>
- <StaticEntity position="3100, 2000, 1500" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
-
-<?lua
-for i = 1, 12, 1
-do
-?>
- <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=1000 team=0>
- <waypoints>
- <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
-
- <Billboard position="2300, 4400, 2500" material="Examples/Flare" />
- <EventDispatcher>
- <targets>
- <EventTarget target=attacker />
- </targets>
- <events>
- <activity>
- <DistanceTrigger position="2300, 4400, 2500" distance=50 target="SpaceShip" stayactive=true />
- </activity>
- </events>
- </EventDispatcher>
-
-<?lua
-for i = 1, 12, 1
-do
-?>
- <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
- <waypoints>
- <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
- <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
- <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
-
- <StaticEntity position="2800, 2500, 2500">
- <attached>
- <CheckPoint />
- <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
- <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
- </attached>
- </StaticEntity>
-<!--
- <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
- <attached>
- <CheckPoint />
- <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
- <Backlight
- mainstate=activity
- active=false
- scale=0.4
- name=bltest
- position=" 7.6, 0, 6"
- colour="0.2, 0.65, 1.0, 1.0"
- width=15
- length=1500
- lifetime=2
- elements=50
- trailmaterial="Trail/backlighttrail"
- turnontime=1
- turnofftime=1
- material="Flares/ThrusterFlare1"
- />
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" />
- <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" />
- <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" />
- <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" />
- <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" />
- <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" />
- <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" />
- </collisionShapes>
- </Destroyer>
--->
- <Destroyer
- position = "6500,-2000,-1000"
- collisionType = dynamic
- mass = 100000
- angularDamping = 0.9999999
- health = 1000
- maxhealth = 1000
- initialhealth = 1000
- >
- <controller>
- <WaypointPatrolController team=1 />
- </controller>
- <attached>
- <Model mesh="Carrier.mesh" scale="5" />
- <Backlight
- mainstate=activity
- active=false
- scale=0.4
- name=bltest
- position=" 7.6, 0, 6"
- colour="0.2, 0.65, 1.0, 1.0"
- width=15
- length=1500
- lifetime=2
- elements=50
- trailmaterial="Trail/backlighttrail"
- turnontime=1
- turnofftime=1
- material="Flares/ThrusterFlare1"
- />
- <?lua for i=0,8,1 do ?>
- <BlinkingBillboard
- position="<?lua print(200-270/8*i)?> ,15,2"
- material="Examples/Flare"
- colour="1.0, 0.5, 0.3"
- phase=<?lua print(-360/8*i)?>
- amplitude=0.1
- frequency=0.5
- quadratic=1
- />
-
- <BlinkingBillboard
- position="<?lua print(200-270/8*i)?>,-15,2"
- material="Examples/Flare"
- colour="1.0, 0.5, 0.3"
- phase=<?lua print(-360/8*i)?>
- amplitude=0.1
- frequency=0.5
- quadratic=1
- />
- <?lua end ?>
-
- <Backlight
- scale=1
- position=" 169, 75, -15"
- colour="1, 0.85, 0.5, 0.5"
- width=40
- length=1000
- lifetime=5
- elements=15
- trailmaterial="Trail/backlighttrail"
- material="Examples/Flare"
- />
- <Backlight
- scale=1
- position=" 169, -75, -15"
- colour="1, 0.85, 0.5, 0.5"
- width=40
- length=1000
- lifetime=5
- elements=15
- trailmaterial="Trail/backlighttrail"
- material="Examples/Flare" />
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" />
- <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" />
- <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" />
- <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" />
- <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" />
- <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" />
- <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" />
- </collisionShapes>
- </Destroyer>
-
-<?lua
-for i = 1, 10, 1
-do
-?>
- <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
- <templates>
- <Template link=spaceshippirate />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=1000 team=1>
- <waypoints>
- <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
-
-<?lua
-elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
-elements.length = function()
- return table.getn(elements)
-end
-for i = 1, 100, 1
-do
-x = math.random() * 100 + (i) * 100
-y = math.random() * 3000 - 1500
-z = math.random() * 3000 - 1500 + (i-100) * 10
-s = math.random() * 60 + 30
-e = math.floor(math.random()*elements.length()+1)
-?>
-
- <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
-
-<?lua
-for i = 1, 100, 1
-do
-x = math.random() * 200 + i*200
-y = math.random() * 3000 - 1500
-z = math.random() * 3000 - 1500 + (i-100) * 10
-s = math.random() * 60 + 30
-?>
- <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
-<!-- <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" />
--->
-<?lua
-end
-?>
-
-<?lua
-elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
-sizes = {4, 4, 4, 4, 4, 10, 20}
-elements.length = function()
- return table.getn(elements)
-end
-for i = 1, 150, 1
-do
-x = math.random() * 750 - 4500
-y = math.random() * 1000 + 2000
-z = math.random() * 500 + 1000
-e = math.floor(math.random()*elements.length()+1)
-?>
-
- <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
- <attached>
- <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
-<!--
- <Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
--->
-</Scene>
-</Level>
+<?lua
+ include("hudtemplates3.oxo")
+ include("stats.oxo")
+ include("templates/spaceship_assff.oxt")
+ include("templates/spaceship_H2.oxt")
+ include("templates/spaceship_pirate.oxt")
+?>
+
+<Level
+ name = "Presentation09"
+ description = "presentation level for Orxonox Convention X"
+ gametype = TeamDeathmatch
+ hasPhysics = true
+>
+ <Scene
+ ambientlight = "0.6, 0.4, 0.4"
+ skybox = "Orxonox/skypanoramagen2"
+ >
+ <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="0.8, 0.5, 0.5, 1.0" specular="0.8, 0.4, 0.4, 1.0" />
+
+ <Template name="JumpItem" baseclass="Jump">
+ <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />
+ </Template>
+ <Template name="HealthImmediateItem" baseclass="HealthImmediate">
+ <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />
+ </Template>
+ <Template name="HealthUsableItem" baseclass="HealthUsable">
+ <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />
+ </Template>
+
+ <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff />
+
+
+
+ <SpaceShip position="-3900,3000,1000">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0>
+ <waypoints>
+ <StaticEntity position="-3850,2800,1450" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+
+ <SpaceShip position="-4100,2600,1600">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0>
+ <waypoints>
+ <StaticEntity position="-3850,2800,1450" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+
+ <SpaceShip position="-4000,2500,1500">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0>
+ <waypoints>
+ <StaticEntity position="-3850,2800,1450" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+
+ <SpaceShip position="-4100,2700,1500">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0 />
+ </controller>
+ </SpaceShip>
+
+ <SpaceShip position="-4150,2750,1550">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0 />
+ </controller>
+ </SpaceShip>
+
+ <Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" />
+
+ <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500">
+ <attached>
+ <!--<Model mesh="jumpthrust.mesh" scale="1.0" />
+ <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />-->
+ </attached>
+ </PickupSpawner>
+
+ <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550">
+ <attached>
+ <Model mesh="gwrench.mesh" scale="1.0" />
+ <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" />
+ </attached>
+ </PickupSpawner>
+
+ <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400">
+ <attached>
+ <Model mesh="gwrench.mesh" scale="1.0" />
+ <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" />
+ </attached>
+ </PickupSpawner>
+
+ <Billboard position="-2500, 2400, 1500" material="Examples/Flare" />
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=pirates />
+ </targets>
+ <events>
+ <activity>
+ <DistanceTrigger position="-2500, 2400, 1500" distance=250 target="SpaceShip" stayactive=true />
+ </activity>
+ </events>
+ </EventDispatcher>
+
+<?lua
+for i = 1, 10, 1
+do
+?>
+ <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
+ <templates>
+ <Template link=spaceshippirate />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
+ <waypoints>
+ <StaticEntity position="3100, 2000, 1500" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+<?lua
+for i = 1, 12, 1
+do
+?>
+ <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=0>
+ <waypoints>
+ <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+ <Billboard position="2300, 4400, 2500" material="Examples/Flare" />
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=attacker />
+ </targets>
+ <events>
+ <activity>
+ <DistanceTrigger position="2300, 4400, 2500" distance=50 target="SpaceShip" stayactive=true />
+ </activity>
+ </events>
+ </EventDispatcher>
+
+<?lua
+for i = 1, 12, 1
+do
+?>
+ <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
+ <waypoints>
+ <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
+ <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
+ <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+ <StaticEntity position="2800, 2500, 2500">
+ <attached>
+ <CheckPoint />
+ <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
+ <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
+ </attached>
+ </StaticEntity>
+<!--
+ <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
+ <attached>
+ <CheckPoint />
+ <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
+ <Backlight
+ mainstate=activity
+ active=false
+ scale=0.4
+ name=bltest
+ position=" 7.6, 0, 6"
+ colour="0.2, 0.65, 1.0, 1.0"
+ width=15
+ length=1500
+ lifetime=2
+ elements=50
+ trailmaterial="Trail/backlighttrail"
+ turnontime=1
+ turnofftime=1
+ material="Flares/ThrusterFlare1"
+ />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" />
+ <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" />
+ <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" />
+ </collisionShapes>
+ </Destroyer>
+-->
+ <Destroyer
+ position = "6500,-2000,-1000"
+ collisionType = dynamic
+ mass = 100000
+ angularDamping = 0.9999999
+ health = 1000
+ maxhealth = 1000
+ initialhealth = 1000
+ >
+ <controller>
+ <WaypointPatrolController team=1 />
+ </controller>
+ <attached>
+ <Model mesh="Carrier.mesh" scale="5" />
+ <Backlight
+ mainstate=activity
+ active=false
+ scale=0.4
+ name=bltest
+ position=" 7.6, 0, 6"
+ colour="0.2, 0.65, 1.0, 1.0"
+ width=15
+ length=1500
+ lifetime=2
+ elements=50
+ trailmaterial="Trail/backlighttrail"
+ turnontime=1
+ turnofftime=1
+ material="Flares/ThrusterFlare1"
+ />
+ <?lua for i=0,8,1 do ?>
+ <BlinkingBillboard
+ position="<?lua print(200-270/8*i)?> ,15,2"
+ material="Examples/Flare"
+ colour="1.0, 0.5, 0.3"
+ phase=<?lua print(-360/8*i)?>
+ amplitude=0.1
+ frequency=0.5
+ quadratic=1
+ />
+
+ <BlinkingBillboard
+ position="<?lua print(200-270/8*i)?>,-15,2"
+ material="Examples/Flare"
+ colour="1.0, 0.5, 0.3"
+ phase=<?lua print(-360/8*i)?>
+ amplitude=0.1
+ frequency=0.5
+ quadratic=1
+ />
+ <?lua end ?>
+
+ <Backlight
+ scale=1
+ position=" 169, 75, -15"
+ colour="1, 0.85, 0.5, 0.5"
+ width=40
+ length=1000
+ lifetime=5
+ elements=15
+ trailmaterial="Trail/backlighttrail"
+ material="Examples/Flare"
+ />
+ <Backlight
+ scale=1
+ position=" 169, -75, -15"
+ colour="1, 0.85, 0.5, 0.5"
+ width=40
+ length=1000
+ lifetime=5
+ elements=15
+ trailmaterial="Trail/backlighttrail"
+ material="Examples/Flare" />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" />
+ <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" />
+ <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" />
+ </collisionShapes>
+ </Destroyer>
+
+<?lua
+for i = 1, 10, 1
+do
+?>
+ <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
+ <templates>
+ <Template link=spaceshippirate />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=1>
+ <waypoints>
+ <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+<?lua
+elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
+elements.length = function()
+ return table.getn(elements)
+end
+for i = 1, 100, 1
+do
+x = math.random() * 100 + (i) * 100
+y = math.random() * 3000 - 1500
+z = math.random() * 3000 - 1500 + (i-100) * 10
+s = math.random() * 60 + 30
+e = math.floor(math.random()*elements.length()+1)
+?>
+
+ <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
+ </attached>
+ </MovableEntity>
+<?lua
+end
+?>
+
+<?lua
+for i = 1, 100, 1
+do
+x = math.random() * 200 + i*200
+y = math.random() * 3000 - 1500
+z = math.random() * 3000 - 1500 + (i-100) * 10
+s = math.random() * 60 + 30
+?>
+ <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
+<!-- <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" />
+-->
+<?lua
+end
+?>
+
+<?lua
+elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
+sizes = {4, 4, 4, 4, 4, 10, 20}
+elements.length = function()
+ return table.getn(elements)
+end
+for i = 1, 150, 1
+do
+x = math.random() * 750 - 4500
+y = math.random() * 1000 + 2000
+z = math.random() * 500 + 1000
+e = math.floor(math.random()*elements.length()+1)
+?>
+
+ <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
+ </attached>
+ </MovableEntity>
+<?lua
+end
+?>
+<!--
+ <Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
+-->
+</Scene>
+</Level>
Property changes on: code/branches/presentation2/data/levels/presentationHS09.oxw
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/levels/presentationHS09b.oxw
===================================================================
--- code/branches/presentation2/data/levels/presentationHS09b.oxw 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/levels/presentationHS09b.oxw 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,270 +1,270 @@
-<?lua
- include("stats.oxo")
- include("hudtemplates3.oxo")
-?>
-
-<?lua
- include("templates/spaceship_assff.oxt")
- include("templates/spaceship_pirate.oxt")
- include("templates/spaceship_ghost.oxt")
- include("templates/spaceship_HXY.oxt")
- include("templates/spaceship_Transporter.oxt")
- include("templates/spaceship_HXY_SL.oxt")
- include("templates/spaceship_Transporter_SL.oxt")
-?>
-
-<Level
- name = "Sample"
- description = "Just a few tests"
- gametype = TeamDeathmatch
->
- <Scene
- ambientlight = "0.8, 0.8, 0.8"
- skybox = "Orxonox/Starbox"
- >
-
-
-<AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
-
- <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
-<?lua
- for i = 1, 50, 1
- do
- x = math.random() * 2000 + 4000
- y = math.random() * 4000 - 2000
- z = math.random() * 2000 - 1000
- s = math.random() * 100
- ?>
-
- <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
- </collisionShapes>
- </MovableEntity>
- <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
-<?lua
-end
-?>
-
-<?lua
-elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
-sizes = {4, 4, 4, 4, 4, 10, 20}
-elements.length = function()
- return table.getn(elements)
-end
-for i = 1, 100, 1
-do
-x = math.random() * 750 - 4500
-y = math.random() * 1000 + 2000
-z = math.random() * 500 + 1000
-e = math.floor(math.random()*elements.length()+1)
-?>
-
- <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
- <attached>
- <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
- </attached>
- </MovableEntity>
- <?lua
- end
- ?>
-<?lua
-for i = 1,12, 1
-do
-?>
- <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
- <templates>
- <Template link=spaceshipHXYSL />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=4000 team=0 active=true>
- <waypoints>
- <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
-<SpaceShip position="5000,100,100" >
- <templates>
- <Template link=spaceshipTransporterSL />
- </templates>
- <controller>
- <WaypointPatrolController name=pirate target=pirate alertnessradius=1000 team=0 active=false>
- <waypoints>
- <StaticEntity position="5000,100,1100" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
-</SpaceShip>
- <Destroyer
- position = "-5000,100 ,100"
- collisionType = dynamic
- mass = 100000
- angularDamping = 0.9999999
- health = 1000
- maxhealth = 1000
- initialhealth = 1000
- >
- <controller>
- <WaypointPatrolController team=1 />
- </controller>
- <attached>
- <Model mesh="Carrier.mesh" scale="5" />
- <Backlight
- mainstate=activity
- active=false
- scale=0.4
- name=bltest
- position=" 7.6, 0, 6"
- colour="0.2, 0.65, 1.0, 1.0"
- width=15
- length=1500
- lifetime=2
- elements=50
- trailmaterial="Trail/backlighttrail"
- turnontime=1
- turnofftime=1
- material="Flares/ThrusterFlare1"
- />
- <?lua for i=0,8,1 do ?>
- <BlinkingBillboard
- position="<?lua print(200-270/8*i)?> ,15,2"
- material="Examples/Flare"
- colour="1.0, 0.5, 0.3"
- phase=<?lua print(-360/8*i)?>
- amplitude=0.1
- frequency=0.5
- quadratic=1
- />
-
- <BlinkingBillboard
- position="<?lua print(200-270/8*i)?>,-15,2"
- material="Examples/Flare"
- colour="1.0, 0.5, 0.3"
- phase=<?lua print(-360/8*i)?>
- amplitude=0.1
- frequency=0.5
- quadratic=1
- />
- <?lua end ?>
-
- <Backlight
- scale=1
- position=" 169, 75, -15"
- colour="1, 0.85, 0.5, 0.5"
- width=40
- length=1000
- lifetime=5
- elements=15
- trailmaterial="Trail/backlighttrail"
- material="Examples/Flare"
- />
- <Backlight
- scale=1
- position=" 169, -75, -15"
- colour="1, 0.85, 0.5, 0.5"
- width=40
- length=1000
- lifetime=5
- elements=15
- trailmaterial="Trail/backlighttrail"
- material="Examples/Flare" />
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" />
- <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" />
- <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" />
- <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" />
- <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" />
- <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" />
- <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" />
- </collisionShapes>
- </Destroyer>
-
- <?lua
- for i = 1, 50, 1
- do
- x = -(math.random() * 2000 + 4000)
- y = math.random() * 4000 - 2000
- z = math.random() * 2000 - 1000
- s = math.random() * 100
- ?>
-
-<MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
- </collisionShapes>
- </MovableEntity>
- <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
-<?lua
-end
-?>
-<!--<EventDispatcher>
- <targets>
- <EventTarget target=attack />
- <EventTarget target=wait />
- </targets>
- <events>
- <activity>
- <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=true />
- </activity>
- </events>
-</EventDispatcher>
-
-<EventDispatcher>
- <targets>
- <EventTarget target=wait />
- </targets>
- <events>
- <activity>
- <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=false />
- </activity>
- </events>
-</EventDispatcher>-->
-
-<?lua
-for i = 1,25, 1
-do
-?>
-<SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
- <templates>
- <Template link=spaceshipghost />
- </templates>
- <controller>
-
- <WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false>
- <events>
- <activity>
- <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
- </activity>
- </events>
- </WaypointPatrolController>
-
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
-
-
-
-<AmbientSound ambientSource="Earth.ogg" loop="true" play="false">
- <events>
- <activity>
- <DistanceTrigger position="2000,0,0" distance=500 target="Camera" />
- </activity>
- </events>
- </AmbientSound>
-
- <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0/>
- </Scene>
-</Level>
+<?lua
+ include("stats.oxo")
+ include("hudtemplates3.oxo")
+?>
+
+<?lua
+ include("templates/spaceship_assff.oxt")
+ include("templates/spaceship_pirate.oxt")
+ include("templates/spaceship_ghost.oxt")
+ include("templates/spaceship_HXY.oxt")
+ include("templates/spaceship_Transporter.oxt")
+ include("templates/spaceship_HXY_SL.oxt")
+ include("templates/spaceship_Transporter_SL.oxt")
+?>
+
+<Level
+ name = "Sample"
+ description = "Just a few tests"
+ gametype = TeamDeathmatch
+>
+ <Scene
+ ambientlight = "0.8, 0.8, 0.8"
+ skybox = "Orxonox/Starbox"
+ >
+
+
+<AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
+
+ <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
+<?lua
+ for i = 1, 50, 1
+ do
+ x = math.random() * 2000 + 4000
+ y = math.random() * 4000 - 2000
+ z = math.random() * 2000 - 1000
+ s = math.random() * 100
+ ?>
+
+ <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
+ </collisionShapes>
+ </MovableEntity>
+ <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
+<?lua
+end
+?>
+
+<?lua
+elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
+sizes = {4, 4, 4, 4, 4, 10, 20}
+elements.length = function()
+ return table.getn(elements)
+end
+for i = 1, 100, 1
+do
+x = math.random() * 750 - 4500
+y = math.random() * 1000 + 2000
+z = math.random() * 500 + 1000
+e = math.floor(math.random()*elements.length()+1)
+?>
+
+ <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
+ </attached>
+ </MovableEntity>
+ <?lua
+ end
+ ?>
+<?lua
+for i = 1,12, 1
+do
+?>
+ <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
+ <templates>
+ <Template link=spaceshipHXYSL />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=4000 team=0 active=true>
+ <waypoints>
+ <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+<SpaceShip position="5000,100,100" >
+ <templates>
+ <Template link=spaceshipTransporterSL />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=pirate target=pirate alertnessradius=1000 team=0 active=false>
+ <waypoints>
+ <StaticEntity position="5000,100,1100" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+</SpaceShip>
+ <Destroyer
+ position = "-5000,100 ,100"
+ collisionType = dynamic
+ mass = 100000
+ angularDamping = 0.9999999
+ health = 1000
+ maxhealth = 1000
+ initialhealth = 1000
+ >
+ <controller>
+ <WaypointPatrolController team=1 />
+ </controller>
+ <attached>
+ <Model mesh="Carrier.mesh" scale="5" />
+ <Backlight
+ mainstate=activity
+ active=false
+ scale=0.4
+ name=bltest
+ position=" 7.6, 0, 6"
+ colour="0.2, 0.65, 1.0, 1.0"
+ width=15
+ length=1500
+ lifetime=2
+ elements=50
+ trailmaterial="Trail/backlighttrail"
+ turnontime=1
+ turnofftime=1
+ material="Flares/ThrusterFlare1"
+ />
+ <?lua for i=0,8,1 do ?>
+ <BlinkingBillboard
+ position="<?lua print(200-270/8*i)?> ,15,2"
+ material="Examples/Flare"
+ colour="1.0, 0.5, 0.3"
+ phase=<?lua print(-360/8*i)?>
+ amplitude=0.1
+ frequency=0.5
+ quadratic=1
+ />
+
+ <BlinkingBillboard
+ position="<?lua print(200-270/8*i)?>,-15,2"
+ material="Examples/Flare"
+ colour="1.0, 0.5, 0.3"
+ phase=<?lua print(-360/8*i)?>
+ amplitude=0.1
+ frequency=0.5
+ quadratic=1
+ />
+ <?lua end ?>
+
+ <Backlight
+ scale=1
+ position=" 169, 75, -15"
+ colour="1, 0.85, 0.5, 0.5"
+ width=40
+ length=1000
+ lifetime=5
+ elements=15
+ trailmaterial="Trail/backlighttrail"
+ material="Examples/Flare"
+ />
+ <Backlight
+ scale=1
+ position=" 169, -75, -15"
+ colour="1, 0.85, 0.5, 0.5"
+ width=40
+ length=1000
+ lifetime=5
+ elements=15
+ trailmaterial="Trail/backlighttrail"
+ material="Examples/Flare" />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" />
+ <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" />
+ <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" />
+ </collisionShapes>
+ </Destroyer>
+
+ <?lua
+ for i = 1, 50, 1
+ do
+ x = -(math.random() * 2000 + 4000)
+ y = math.random() * 4000 - 2000
+ z = math.random() * 2000 - 1000
+ s = math.random() * 100
+ ?>
+
+<MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
+ </collisionShapes>
+ </MovableEntity>
+ <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
+<?lua
+end
+?>
+<!--<EventDispatcher>
+ <targets>
+ <EventTarget target=attack />
+ <EventTarget target=wait />
+ </targets>
+ <events>
+ <activity>
+ <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=true />
+ </activity>
+ </events>
+</EventDispatcher>
+
+<EventDispatcher>
+ <targets>
+ <EventTarget target=wait />
+ </targets>
+ <events>
+ <activity>
+ <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=false />
+ </activity>
+ </events>
+</EventDispatcher>-->
+
+<?lua
+for i = 1,25, 1
+do
+?>
+<SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
+ <templates>
+ <Template link=spaceshipghost />
+ </templates>
+ <controller>
+
+ <WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false>
+ <events>
+ <activity>
+ <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
+ </activity>
+ </events>
+ </WaypointPatrolController>
+
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+
+
+<AmbientSound ambientSource="Earth.ogg" loop="true" play="false">
+ <events>
+ <activity>
+ <DistanceTrigger position="2000,0,0" distance=500 target="Camera" />
+ </activity>
+ </events>
+ </AmbientSound>
+
+ <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0/>
+ </Scene>
+</Level>
Property changes on: code/branches/presentation2/data/levels/presentationHS09b.oxw
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/levels/templates/spaceship_HXY.oxt
===================================================================
--- code/branches/presentation2/data/levels/templates/spaceship_HXY.oxt 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/levels/templates/spaceship_HXY.oxt 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,94 +1,94 @@
-<Template name=spaceshipHXY>
- <SpaceShip
- hudtemplate = spaceshiphud
- camerapositiontemplate = spaceshipHXYcameras
- engine = spaceshipHXYengine
- spawnparticlesource = "Orxonox/fairytwirl"
- spawnparticleduration = 3
- explosionchunks = 6
-
- health = 100
- maxhealth = 200
- initialhealth = 100
-
- primaryThrust = 100;
- auxilaryThrust = 30;
- rotationThrust = 25;
-
- collisionType = "dynamic"
- mass = 100
- linearDamping = 0.7
- angularDamping = 0.9999999
- >
- <attached>
- <Model position="0,0,0" yaw=180 pitch=-90 roll=0 scale=4 mesh="HXY.mesh" />
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
- <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
- <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
- <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
- <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
- <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
- </collisionShapes>
-
-<?lua
- include("includes/weaponsettings_HXY.oxi")
-?>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipHXYcameras defaults=0>
- <SpaceShip>
- <camerapositions>
- <CameraPosition position="0,8, 60" drag=true mouselook=true />
- <CameraPosition position="0,16, 120" drag=true mouselook=true />
- <CameraPosition position="0,24,180" drag=true mouselook=true />
- <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true />
- </camerapositions>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipHXYengine baseclass=MultiStateEngine>
- <MultiStateEngine
- boostfactor = 6
-
- speedfront = 150
- speedback = 50
- speedleftright = 50
- speedupdown = 50
-
- defEngineSndNormal = "sounds/Engine_low.ogg"
- defEngineSndBoost = "sounds/Engine_high.ogg"
-
- accelerationfront = 500
- accelerationbrake = 500
- accelerationback = 125
- accelerationleftright = 125
- accelerationupdown = 125
- >
- <EffectContainer condition="idle">
- <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" loop=1 active=false/>
- </EffectContainer>
- <EffectContainer condition="not idle">
-
- </EffectContainer>
- <EffectContainer condition="normal or brake">
-
- </EffectContainer>
- <EffectContainer condition="normal or boost">
- <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
- <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
- </EffectContainer>
- <EffectContainer condition="boost">
- <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
- <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
- </EffectContainer>
- <EffectContainer condition="brake">
- <FadingBillboard mainstate=activity active=false scale=0.3 position=" 2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=0.3 position="-2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=0.15 position=" 2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=0.15 position="-2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
- </EffectContainer>
- </MultiStateEngine>
-</Template>
+<Template name=spaceshipHXY>
+ <SpaceShip
+ hudtemplate = spaceshiphud
+ camerapositiontemplate = spaceshipHXYcameras
+ engine = spaceshipHXYengine
+ spawnparticlesource = "Orxonox/fairytwirl"
+ spawnparticleduration = 3
+ explosionchunks = 6
+
+ health = 100
+ maxhealth = 200
+ initialhealth = 100
+
+ primaryThrust = 100;
+ auxilaryThrust = 30;
+ rotationThrust = 25;
+
+ collisionType = "dynamic"
+ mass = 100
+ linearDamping = 0.7
+ angularDamping = 0.9999999
+ >
+ <attached>
+ <Model position="0,0,0" yaw=180 pitch=-90 roll=0 scale=4 mesh="HXY.mesh" />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
+ <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
+ <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
+ <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
+ </collisionShapes>
+
+<?lua
+ include("includes/weaponsettings_HXY.oxi")
+?>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipHXYcameras defaults=0>
+ <SpaceShip>
+ <camerapositions>
+ <CameraPosition position="0,8, 60" drag=true mouselook=true />
+ <CameraPosition position="0,16, 120" drag=true mouselook=true />
+ <CameraPosition position="0,24,180" drag=true mouselook=true />
+ <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true />
+ </camerapositions>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipHXYengine baseclass=MultiStateEngine>
+ <MultiStateEngine
+ boostfactor = 6
+
+ speedfront = 150
+ speedback = 50
+ speedleftright = 50
+ speedupdown = 50
+
+ defEngineSndNormal = "sounds/Engine_low.ogg"
+ defEngineSndBoost = "sounds/Engine_high.ogg"
+
+ accelerationfront = 500
+ accelerationbrake = 500
+ accelerationback = 125
+ accelerationleftright = 125
+ accelerationupdown = 125
+ >
+ <EffectContainer condition="idle">
+ <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" loop=1 active=false/>
+ </EffectContainer>
+ <EffectContainer condition="not idle">
+
+ </EffectContainer>
+ <EffectContainer condition="normal or brake">
+
+ </EffectContainer>
+ <EffectContainer condition="normal or boost">
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ </EffectContainer>
+ <EffectContainer condition="boost">
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ </EffectContainer>
+ <EffectContainer condition="brake">
+ <FadingBillboard mainstate=activity active=false scale=0.3 position=" 2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=0.3 position="-2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=0.15 position=" 2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=0.15 position="-2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
+ </EffectContainer>
+ </MultiStateEngine>
+</Template>
Property changes on: code/branches/presentation2/data/levels/templates/spaceship_HXY.oxt
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/levels/templates/spaceship_HXY_SL.oxt
===================================================================
--- code/branches/presentation2/data/levels/templates/spaceship_HXY_SL.oxt 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/levels/templates/spaceship_HXY_SL.oxt 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,90 +1,90 @@
-<Template name=spaceshipHXYSL>
- <SpaceShip
- hudtemplate = spaceshiphud
- camerapositiontemplate = spaceshipHXYcameras
- engine = spaceshipHXYengine
- spawnparticlesource = "Orxonox/fairytwirl"
- spawnparticleduration = 3
- explosionchunks = 6
-
- health = 100
- maxhealth = 200
- initialhealth = 100
-
- primaryThrust = 100;
- auxilaryThrust = 30;
- rotationThrust = 25;
-
- collisionType = "dynamic"
- mass = 100
- linearDamping = 0.7
- angularDamping = 0.9999999
- >
- <attached>
- <Model position="0,0,0" yaw=180 pitch=-90 roll=0 scale=4 mesh="HXY.mesh" />
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
- <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
- <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
- <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
- <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
- <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
- </collisionShapes>
-
-<?lua
- include("includes/weaponsettings_HXY.oxi")
-?>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipHXYcameras defaults=0>
- <SpaceShip>
- <camerapositions>
- <CameraPosition position="0,8, 60" drag=true mouselook=true />
- <CameraPosition position="0,16, 120" drag=true mouselook=true />
- <CameraPosition position="0,24,180" drag=true mouselook=true />
- <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true />
- </camerapositions>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipHXYengine baseclass=MultiStateEngine>
- <MultiStateEngine
- boostfactor = 6
-
- speedfront = 150
- speedback = 50
- speedleftright = 50
- speedupdown = 50
-
- accelerationfront = 500
- accelerationbrake = 500
- accelerationback = 125
- accelerationleftright = 125
- accelerationupdown = 125
- >
- <EffectContainer condition="idle">
- </EffectContainer>
- <EffectContainer condition="not idle">
-
- </EffectContainer>
- <EffectContainer condition="normal or brake">
-
- </EffectContainer>
- <EffectContainer condition="normal or boost">
- <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
- <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
- </EffectContainer>
- <EffectContainer condition="boost">
- <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
- <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
- </EffectContainer>
- <EffectContainer condition="brake">
- <FadingBillboard mainstate=activity active=false scale=0.3 position=" 2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=0.3 position="-2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=0.15 position=" 2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=0.15 position="-2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
- </EffectContainer>
- </MultiStateEngine>
-</Template>
+<Template name=spaceshipHXYSL>
+ <SpaceShip
+ hudtemplate = spaceshiphud
+ camerapositiontemplate = spaceshipHXYcameras
+ engine = spaceshipHXYengine
+ spawnparticlesource = "Orxonox/fairytwirl"
+ spawnparticleduration = 3
+ explosionchunks = 6
+
+ health = 100
+ maxhealth = 200
+ initialhealth = 100
+
+ primaryThrust = 100;
+ auxilaryThrust = 30;
+ rotationThrust = 25;
+
+ collisionType = "dynamic"
+ mass = 100
+ linearDamping = 0.7
+ angularDamping = 0.9999999
+ >
+ <attached>
+ <Model position="0,0,0" yaw=180 pitch=-90 roll=0 scale=4 mesh="HXY.mesh" />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
+ <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
+ <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
+ <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
+ </collisionShapes>
+
+<?lua
+ include("includes/weaponsettings_HXY.oxi")
+?>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipHXYcameras defaults=0>
+ <SpaceShip>
+ <camerapositions>
+ <CameraPosition position="0,8, 60" drag=true mouselook=true />
+ <CameraPosition position="0,16, 120" drag=true mouselook=true />
+ <CameraPosition position="0,24,180" drag=true mouselook=true />
+ <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true />
+ </camerapositions>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipHXYengine baseclass=MultiStateEngine>
+ <MultiStateEngine
+ boostfactor = 6
+
+ speedfront = 150
+ speedback = 50
+ speedleftright = 50
+ speedupdown = 50
+
+ accelerationfront = 500
+ accelerationbrake = 500
+ accelerationback = 125
+ accelerationleftright = 125
+ accelerationupdown = 125
+ >
+ <EffectContainer condition="idle">
+ </EffectContainer>
+ <EffectContainer condition="not idle">
+
+ </EffectContainer>
+ <EffectContainer condition="normal or brake">
+
+ </EffectContainer>
+ <EffectContainer condition="normal or boost">
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ </EffectContainer>
+ <EffectContainer condition="boost">
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ </EffectContainer>
+ <EffectContainer condition="brake">
+ <FadingBillboard mainstate=activity active=false scale=0.3 position=" 2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=0.3 position="-2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=0.15 position=" 2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=0.15 position="-2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
+ </EffectContainer>
+ </MultiStateEngine>
+</Template>
Property changes on: code/branches/presentation2/data/levels/templates/spaceship_HXY_SL.oxt
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/levels/templates/spaceship_Transporter.oxt
===================================================================
--- code/branches/presentation2/data/levels/templates/spaceship_Transporter.oxt 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/levels/templates/spaceship_Transporter.oxt 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,94 +1,94 @@
-<Template name=spaceshipTransporter>
- <SpaceShip
- hudtemplate = spaceshiphud
- camerapositiontemplate = spaceshipTransportercameras
- engine = spaceshipTransporterengine
- spawnparticlesource = "Orxonox/fairytwirl"
- spawnparticleduration = 3
- explosionchunks = 6
-
- health = 1000
- maxhealth = 1500
- initialhealth = 1000
-
- primaryThrust = 50;
- auxilaryThrust = 10;
- rotationThrust = 15;
-
- collisionType = "dynamic"
- mass = 1000
- linearDamping = 0.7
- angularDamping = 0.9999999
- >
- <attached>
- <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=10 mesh="Transporter.mesh" />
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
- <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
- <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
- <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
- <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
- <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
- </collisionShapes>
-
-<?lua
- include("includes/weaponsettings_Transporter.oxi")
-?>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipTransportercameras defaults=0>
- <SpaceShip>
- <camerapositions>
- <CameraPosition position="0,90,350" drag=true mouselook=true />
- <CameraPosition position="0,150, 400" drag=true mouselook=true />
- <CameraPosition position="0,200,550" drag=true mouselook=true />
- <CameraPosition position="0,120,200" pitch="-80" drag=true mouselook=true />
- </camerapositions>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipTransporterengine baseclass=MultiStateEngine>
- <MultiStateEngine
- boostfactor = 2
-
- speedfront = 50
- speedback = 10
- speedleftright = 10
- speedupdown = 10
-
- defEngineSndNormal = "sounds/Engine_low.ogg"
- defEngineSndBoost = "sounds/Engine_high.ogg"
-
- accelerationfront = 20
- accelerationbrake = 20
- accelerationback = 10
- accelerationleftright = 10
- accelerationupdown = 10
- >
- <EffectContainer condition="idle">
- <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" loop=1 active=false/>
- </EffectContainer>
- <EffectContainer condition="not idle">
-
- </EffectContainer>
- <EffectContainer condition="normal or brake">
-
- </EffectContainer>
- <EffectContainer condition="normal or boost">
- <Backlight mainstate=activity active=false scale=2 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
- <Backlight mainstate=activity active=false scale=2 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
- </EffectContainer>
- <EffectContainer condition="boost">
- <Backlight mainstate=activity active=false scale=3 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
- <Backlight mainstate=activity active=false scale=3 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
- </EffectContainer>
- <EffectContainer condition="brake">
- <FadingBillboard mainstate=activity active=false scale=2 position=" 22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=2 position="-22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=1 position="22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=1 position="-22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
- </EffectContainer>
- </MultiStateEngine>
-</Template>
+<Template name=spaceshipTransporter>
+ <SpaceShip
+ hudtemplate = spaceshiphud
+ camerapositiontemplate = spaceshipTransportercameras
+ engine = spaceshipTransporterengine
+ spawnparticlesource = "Orxonox/fairytwirl"
+ spawnparticleduration = 3
+ explosionchunks = 6
+
+ health = 1000
+ maxhealth = 1500
+ initialhealth = 1000
+
+ primaryThrust = 50;
+ auxilaryThrust = 10;
+ rotationThrust = 15;
+
+ collisionType = "dynamic"
+ mass = 1000
+ linearDamping = 0.7
+ angularDamping = 0.9999999
+ >
+ <attached>
+ <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=10 mesh="Transporter.mesh" />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
+ <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
+ <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
+ <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
+ </collisionShapes>
+
+<?lua
+ include("includes/weaponsettings_Transporter.oxi")
+?>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipTransportercameras defaults=0>
+ <SpaceShip>
+ <camerapositions>
+ <CameraPosition position="0,90,350" drag=true mouselook=true />
+ <CameraPosition position="0,150, 400" drag=true mouselook=true />
+ <CameraPosition position="0,200,550" drag=true mouselook=true />
+ <CameraPosition position="0,120,200" pitch="-80" drag=true mouselook=true />
+ </camerapositions>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipTransporterengine baseclass=MultiStateEngine>
+ <MultiStateEngine
+ boostfactor = 2
+
+ speedfront = 50
+ speedback = 10
+ speedleftright = 10
+ speedupdown = 10
+
+ defEngineSndNormal = "sounds/Engine_low.ogg"
+ defEngineSndBoost = "sounds/Engine_high.ogg"
+
+ accelerationfront = 20
+ accelerationbrake = 20
+ accelerationback = 10
+ accelerationleftright = 10
+ accelerationupdown = 10
+ >
+ <EffectContainer condition="idle">
+ <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" loop=1 active=false/>
+ </EffectContainer>
+ <EffectContainer condition="not idle">
+
+ </EffectContainer>
+ <EffectContainer condition="normal or brake">
+
+ </EffectContainer>
+ <EffectContainer condition="normal or boost">
+ <Backlight mainstate=activity active=false scale=2 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ <Backlight mainstate=activity active=false scale=2 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ </EffectContainer>
+ <EffectContainer condition="boost">
+ <Backlight mainstate=activity active=false scale=3 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ <Backlight mainstate=activity active=false scale=3 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ </EffectContainer>
+ <EffectContainer condition="brake">
+ <FadingBillboard mainstate=activity active=false scale=2 position=" 22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=2 position="-22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=1 position="22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=1 position="-22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
+ </EffectContainer>
+ </MultiStateEngine>
+</Template>
Property changes on: code/branches/presentation2/data/levels/templates/spaceship_Transporter.oxt
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/levels/templates/spaceship_Transporter_SL.oxt
===================================================================
--- code/branches/presentation2/data/levels/templates/spaceship_Transporter_SL.oxt 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/levels/templates/spaceship_Transporter_SL.oxt 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,91 +1,91 @@
-<Template name=spaceshipTransporterSL>
- <SpaceShip
- hudtemplate = spaceshiphud
- camerapositiontemplate = spaceshipTransportercameras
- engine = spaceshipTransporterengine
- spawnparticlesource = "Orxonox/fairytwirl"
- spawnparticleduration = 3
- explosionchunks = 6
-
- health = 1000
- maxhealth = 1500
- initialhealth = 1000
-
- primaryThrust = 50;
- auxilaryThrust = 10;
- rotationThrust = 15;
-
- collisionType = "dynamic"
- mass = 1000
- linearDamping = 0.7
- angularDamping = 0.9999999
- >
- <attached>
- <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=10 mesh="Transporter.mesh" />
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
- <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
- <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
- <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
- <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
- <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
- </collisionShapes>
-
-<?lua
- include("includes/weaponsettings_Transporter.oxi")
-?>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipTransportercameras defaults=0>
- <SpaceShip>
- <camerapositions>
- <CameraPosition position="0,90,350" drag=true mouselook=true />
- <CameraPosition position="0,150, 400" drag=true mouselook=true />
- <CameraPosition position="0,200,550" drag=true mouselook=true />
- <CameraPosition position="0,120,200" pitch="-80" drag=true mouselook=true />
- </camerapositions>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipTransporterengine baseclass=MultiStateEngine>
- <MultiStateEngine
- boostfactor = 2
-
- speedfront = 50
- speedback = 10
- speedleftright = 10
- speedupdown = 10
-
-
- accelerationfront = 20
- accelerationbrake = 20
- accelerationback = 10
- accelerationleftright = 10
- accelerationupdown = 10
- >
- <EffectContainer condition="idle">
- </EffectContainer>
- <EffectContainer condition="not idle">
-
- </EffectContainer>
- <EffectContainer condition="normal or brake">
-
- </EffectContainer>
- <EffectContainer condition="normal or boost">
- <Backlight mainstate=activity active=false scale=2 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
- <Backlight mainstate=activity active=false scale=2 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
- </EffectContainer>
- <EffectContainer condition="boost">
- <Backlight mainstate=activity active=false scale=3 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
- <Backlight mainstate=activity active=false scale=3 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
- </EffectContainer>
- <EffectContainer condition="brake">
- <FadingBillboard mainstate=activity active=false scale=2 position=" 22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=2 position="-22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=1 position="22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
- <FadingBillboard mainstate=activity active=false scale=1 position="-22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
- </EffectContainer>
- </MultiStateEngine>
-</Template>
+<Template name=spaceshipTransporterSL>
+ <SpaceShip
+ hudtemplate = spaceshiphud
+ camerapositiontemplate = spaceshipTransportercameras
+ engine = spaceshipTransporterengine
+ spawnparticlesource = "Orxonox/fairytwirl"
+ spawnparticleduration = 3
+ explosionchunks = 6
+
+ health = 1000
+ maxhealth = 1500
+ initialhealth = 1000
+
+ primaryThrust = 50;
+ auxilaryThrust = 10;
+ rotationThrust = 15;
+
+ collisionType = "dynamic"
+ mass = 1000
+ linearDamping = 0.7
+ angularDamping = 0.9999999
+ >
+ <attached>
+ <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=10 mesh="Transporter.mesh" />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
+ <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
+ <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
+ <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
+ </collisionShapes>
+
+<?lua
+ include("includes/weaponsettings_Transporter.oxi")
+?>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipTransportercameras defaults=0>
+ <SpaceShip>
+ <camerapositions>
+ <CameraPosition position="0,90,350" drag=true mouselook=true />
+ <CameraPosition position="0,150, 400" drag=true mouselook=true />
+ <CameraPosition position="0,200,550" drag=true mouselook=true />
+ <CameraPosition position="0,120,200" pitch="-80" drag=true mouselook=true />
+ </camerapositions>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipTransporterengine baseclass=MultiStateEngine>
+ <MultiStateEngine
+ boostfactor = 2
+
+ speedfront = 50
+ speedback = 10
+ speedleftright = 10
+ speedupdown = 10
+
+
+ accelerationfront = 20
+ accelerationbrake = 20
+ accelerationback = 10
+ accelerationleftright = 10
+ accelerationupdown = 10
+ >
+ <EffectContainer condition="idle">
+ </EffectContainer>
+ <EffectContainer condition="not idle">
+
+ </EffectContainer>
+ <EffectContainer condition="normal or brake">
+
+ </EffectContainer>
+ <EffectContainer condition="normal or boost">
+ <Backlight mainstate=activity active=false scale=2 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ <Backlight mainstate=activity active=false scale=2 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ </EffectContainer>
+ <EffectContainer condition="boost">
+ <Backlight mainstate=activity active=false scale=3 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ <Backlight mainstate=activity active=false scale=3 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ </EffectContainer>
+ <EffectContainer condition="brake">
+ <FadingBillboard mainstate=activity active=false scale=2 position=" 22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=2 position="-22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=1 position="22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=1 position="-22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
+ </EffectContainer>
+ </MultiStateEngine>
+</Template>
Property changes on: code/branches/presentation2/data/levels/templates/spaceship_Transporter_SL.oxt
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/presentation2/data/particle/Steam.particle
===================================================================
--- code/branches/presentation2/data/particle/Steam.particle 2009-12-16 11:35:48 UTC (rev 6362)
+++ code/branches/presentation2/data/particle/Steam.particle 2009-12-16 20:41:33 UTC (rev 6363)
@@ -1,44 +1,44 @@
-
-particle_system Orxonox/Steam
-{
- quota 1
- material PE/smoke
- particle_width 2000
- particle_height 2000
- cull_each false
- renderer billboard
- sorted false
- local_space false
- iteration_interval 0
- nonvisible_update_timeout 0
- billboard_type point
- billboard_origin center
- billboard_rotation_type texcoord
- common_up_vector 0 1 0
- point_rendering false
- accurate_facing false
-
- emitter Point
- {
- angle 0
- colour 1 1 1 0.1
- colour_range_start 1 1 1 0.1
- colour_range_end 1 1 1 0.02
- direction 0 1 0
- emission_rate 1
- position 0 0 0
- velocity 0
- velocity_min 0
- velocity_max 0
- time_to_live 200
- time_to_live_min 200
- time_to_live_max 300
- duration 0
- duration_min 0
- duration_max 0
- repeat_delay 0
- repeat_delay_min 0
- repeat_delay_max 0
- }
-}
-
+
+particle_system Orxonox/Steam
+{
+ quota 1
+ material PE/smoke
+ particle_width 2000
+ particle_height 2000
+ cull_each false
+ renderer billboard
+ sorted false
+ local_space false
+ iteration_interval 0
+ nonvisible_update_timeout 0
+ billboard_type point
+ billboard_origin center
+ billboard_rotation_type texcoord
+ common_up_vector 0 1 0
+ point_rendering false
+ accurate_facing false
+
+ emitter Point
+ {
+ angle 0
+ colour 1 1 1 0.1
+ colour_range_start 1 1 1 0.1
+ colour_range_end 1 1 1 0.02
+ direction 0 1 0
+ emission_rate 1
+ position 0 0 0
+ velocity 0
+ velocity_min 0
+ velocity_max 0
+ time_to_live 200
+ time_to_live_min 200
+ time_to_live_max 300
+ duration 0
+ duration_min 0
+ duration_max 0
+ repeat_delay 0
+ repeat_delay_min 0
+ repeat_delay_max 0
+ }
+}
+
Property changes on: code/branches/presentation2/data/particle/Steam.particle
___________________________________________________________________
Added: svn:eol-style
+ native
Property changes on: code/branches/presentation2/src/libraries/network/synchronisable/Serialise.h
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the Orxonox-commit
mailing list