Revision: 2657
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2657&view=rev
Author:   ulteq
Date:     2012-05-25 00:54:35 +0000 (Fri, 25 May 2012)
Log Message:
-----------
-Feature: added new loader types to base.as script
also fixes the loader type relation in showChooser()

Modified Paths:
--------------
    trunk/bin/resources/scripts.zip
    trunk/source/main/scripting/GameScript.cpp

Modified: trunk/bin/resources/scripts.zip
===================================================================
(Binary files differ)

Modified: trunk/source/main/scripting/GameScript.cpp
===================================================================
--- trunk/source/main/scripting/GameScript.cpp  2012-05-24 23:55:18 UTC (rev 
2656)
+++ trunk/source/main/scripting/GameScript.cpp  2012-05-25 00:54:35 UTC (rev 
2657)
@@ -239,18 +239,23 @@
 {
 #ifdef USE_MYGUI
        SelectorWindow::LoaderType ntype = SelectorWindow::LT_None;
-       if (type == "vehicle")   ntype = SelectorWindow::LT_Vehicle;
-       if (type == "truck")     ntype = SelectorWindow::LT_Truck;
-       if (type == "car")       ntype = SelectorWindow::LT_Truck;
-       if (type == "boat")      ntype = SelectorWindow::LT_Boat;
-       if (type == "airplane")  ntype = SelectorWindow::LT_Airplane;
-       if (type == "heli")      ntype = SelectorWindow::LT_Heli;
-       if (type == "trailer")   ntype = SelectorWindow::LT_Trailer;
-       if (type == "train")     ntype = SelectorWindow::LT_Train;
-       if (type == "load")      ntype = SelectorWindow::LT_Load;
-       if (type == "extension") ntype = SelectorWindow::LT_Extension;
+       
+       if (type == "airplane")    ntype = SelectorWindow::LT_Airplane;
+       if (type == "all")         ntype = SelectorWindow::LT_AllBeam;
+       if (type == "boat")        ntype = SelectorWindow::LT_Boat;
+       if (type == "car")         ntype = SelectorWindow::LT_Car;
+       if (type == "extension")   ntype = SelectorWindow::LT_Extension;
+       if (type == "heli")        ntype = SelectorWindow::LT_Heli;
+       if (type == "load")        ntype = SelectorWindow::LT_Load;
+       if (type == "trailer")     ntype = SelectorWindow::LT_Trailer;
+       if (type == "train")       ntype = SelectorWindow::LT_Train;
+       if (type == "truck")       ntype = SelectorWindow::LT_Truck;
+       if (type == "vehicle")     ntype = SelectorWindow::LT_Vehicle;
+       
        if (ntype != SelectorWindow::LT_None)
+       {
                mefl->showLoad(ntype, const_cast<char*>(instance.c_str()), 
const_cast<char*>(box.c_str()));
+       }
 #endif //USE_MYGUI
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rigsofrods-devel mailing list
Rigsofrods-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to