This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9600 for ps


Ignore:
Timestamp:
06/09/11 18:40:29 (14 years ago)
Author:
philip
Message:

Improve selection details debug display.

Location:
ps/trunk/binaries/data/mods/public
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/session/session.js

    r9592 r9600  
    271271    }
    272272
    273     var text = uneval(simState);
     273    var conciseSimState = deepcopy(simState);
     274    conciseSimState.players = "<<<omitted>>>";
     275    var text = "simulation: " + uneval(conciseSimState);
    274276   
    275277    var selection = g_Selection.toList();
     
    280282        {
    281283            var template = GetTemplateData(entState.template);
    282             text += "\n\n" + uneval(entState) + "\n\n" + uneval(template);
     284            text += "\n\nentity: {\n";
     285            for (var k in entState)
     286                text += "  "+k+":"+uneval(entState[k])+"\n";
     287            text += "}\n\ntemplate: " + uneval(template);
    283288        }
    284289    }
  • ps/trunk/binaries/data/mods/public/gui/session/session.xml

    r9554 r9600  
    9292        <object name="debug"
    9393            type="text"
    94             size="0 50 80% 100%"
     94            size="0 70 80% 100%"
    9595            ghost="true"
    9696            textcolor="yellow"
  • ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js

    r9498 r9600  
    230230    }
    231231   
     232    var cmpUnitAI = Engine.QueryInterface(ent, IID_UnitAI);
     233    if (cmpUnitAI)
     234    {
     235        ret.unitAI = {
     236            // TODO: reading properties directly is kind of violating abstraction
     237            "state": cmpUnitAI.fsmStateName,
     238            "orders": cmpUnitAI.orderQueue,
     239        };
     240    }
     241
    232242    var cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager);
    233243    ret.visibility = cmpRangeManager.GetLosVisibility(ent, player);
Note: See TracChangeset for help on using the changeset viewer.