Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2011, 6:21:05 PM (14 years ago)
Author:
sven
Message:

Added docking animations, skeletton for DockingController..

Location:
code/branches/dockingsystem2/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/dockingsystem2/data/gui/scripts/DockingDialog.lua

    r8487 r8493  
    1010
    1111function P.onShow()
    12     orxonox.CommandExecutor:execute("pause")
     12    orxonox.execute("setPause 1")
    1313    P.update()
    1414end
    1515
    1616function P.onHide()
    17     orxonox.CommandExecutor:execute("pause")
     17    orxonox.execute("setPause 0")
    1818end
    1919
     
    4242        local index = listbox:getItemIndex(choice)
    4343        local dock = P.docks[index+1]
    44         cout(0, index )--.. ": " .. P.docks[index])
    4544        if dock ~= nil then
    46             cout(0, "LUA>Docking")
    4745            dock:dock()
    4846        end
     
    5250
    5351function P.cancelButton_clicked(e)
    54     --P.hideMe()
    5552    hideMenuSheet(P.name)
    5653end
  • code/branches/dockingsystem2/data/levels/docking.oxw

    r8487 r8493  
    3535
    3636
    37 
    3837    <Dock>
    39         <animation>
     38        <animations>
    4039            <MoveToDockingTarget target="destroyer" position="10,150,40" />
    41         </animation>
     40        </animations>
    4241        <effects>
    43             <DockToShip target="destroyer" />
     42            <DockToShip target="spaceShip" />
    4443        </effects>
    4544        <events>
     
    4948        </events>
    5049        <attached>
    51             <DistanceTrigger position="0,0,0" distance="30" target="Pawn" beaconMode="exclude" targetname="destroyerBeacon" name="dockMe" />
     50            <DistanceTrigger position="0,0,0" distance="30" target="Pawn" beaconMode="exclude" targetname="bcnSpaceShip" name="dockMe" />
    5251            <Billboard material="Examples/Flare" colour="1.0, 0, 0" />
    5352        </attached>
     
    7978  >
    8079    <attached>
    81         <DistanceTriggerBeacon name="bcnSpaceShip1" />
    82         <DockingTarget name="spaceShip1" />
     80        <DistanceTriggerBeacon name="bcnSpaceShip" />
     81        <DockingTarget name="spaceShip" />
    8382
    8483      <Model position="0,0,0" yaw="90" pitch="-90" roll="0" scale="4" mesh="assff.mesh" />
Note: See TracChangeset for help on using the changeset viewer.