1
0

controller-commands.tpl 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {{ define "controller-commands" }}
  2. {{ template "header" .}}
  3. <div id="wrapper">
  4. {{ template "navigation" .}}
  5. <!-- Page Content -->
  6. <div id="page-wrapper">
  7. <div class="row">
  8. <div class="col-lg-12">
  9. <h1 class="page-header">{{.Title}}</h1>
  10. </div>
  11. <!-- /.col-lg-12 -->
  12. </div>
  13. <!-- /.row -->
  14. <div class="row">
  15. <div class="col-lg-12">
  16. <div class="panel panel-default">
  17. <div class="panel-heading">
  18. {{ .PanelHeading }}
  19. </div>
  20. <div class="panel-body">
  21. <form role="form" action="{{.URLPathPrefix}}/admin/controller-commands/exec/" method="post">
  22. <div class="row">
  23. <div class="col-lg-6">
  24. <div class="form-group">
  25. <label>Master Bot Controller</label>
  26. <select class="form-control" name="PermURL" id="PermURL" size="1">
  27. <option value="0" selected="selected" disabled="disabled">Please choose a master bot controller</option>
  28. {{.MasterBotControllers}}
  29. </select>
  30. </div> <!-- /.form-group -->
  31. </div> <!-- /.col-lg.6 -->
  32. <div class="col-lg-6">
  33. <div class="form-group">
  34. <label>Agent Name</label>
  35. <select class="form-control" name="NPC" id="NPC" size="1">
  36. <option value="0" selected="selected" disabled="disabled">Please choose an agent name</option>
  37. {{.AgentNames}}
  38. </select>
  39. </div> <!-- /.form-group -->
  40. </div> <!-- /.col-lg.6 -->
  41. </div> <!-- /.row -->
  42. <div class="row">
  43. <div class="col-lg-6">
  44. <div class="form-group">
  45. <label>Commands</label>
  46. <select class="form-control" name="command" id="command" size="1">
  47. <option value="0" selected="selected" disabled="disabled">Please choose</option>
  48. <optgroup label="Creation and Destruction">
  49. <option value="osNpcCreate">osNpcCreate</option>
  50. <option value="osNpcRemove">osNpcRemove</option>
  51. </optgroup>
  52. <optgroup label="Get and Set">
  53. <option value="osNpcGetRot">osNpcGetRot</option>
  54. <option value="osNpcSetRot">osNpcSetRot</option>
  55. <option value="osNpcGetPos">osNpcGetPos</option>
  56. <option value="osNpcGetOwner">osNpcGetOwner</option>
  57. </optgroup>
  58. <optgroup label="Movement">
  59. <option value="osNpcMoveToTarget">osNpcMoveToTarget</option>
  60. <option value="osNpcStopMoveToTarget">osNpcStopMoveToTarget</option>
  61. </optgroup>
  62. <optgroup label="Sitting and Standing">
  63. <option value="osNpcSit">osNpcSit</option>
  64. <option value="osNpcStand">osNpcStand</option>
  65. </optgroup>
  66. <optgroup label="Communication">
  67. <option value="osNpcSay">osNpcSay</option>
  68. <option value="osNpcShout">osNpcShout</option>
  69. <option value="osNpcWhisper">osNpcWhisper</option>
  70. </optgroup>
  71. <optgroup label="Animations">
  72. <option value="osNpcPlayAnimation">osNpcPlayAnimation</option>
  73. <option value="osNpcStopAnimation">osNpcStopAnimation</option>
  74. </optgroup>
  75. <optgroup label="Appearance">
  76. <option value="osNpcLoadAppearance">osNpcLoadAppearance</option>
  77. </optgroup>
  78. <optgroup label="Touch">
  79. <option value="osNpcTouch">osNpcTouch</option>
  80. </optgroup>
  81. <optgroup label="Engine Get Values">
  82. <option value="getMoney">getMoney</option>
  83. <option value="getHappiness">getHappiness</option>
  84. <option value="getEnergy">getEnergy</option>
  85. <option value="getHome">getHome</option>
  86. <option value="getClass">getClass</option>
  87. <option value="getSubType">getSubType</option>
  88. </optgroup>
  89. <optgroup label="Engine Set Values">
  90. <option value="setMoney">setMoney</option>
  91. <option value="setHappiness">setHappiness</option>
  92. <option value="setEnergy">setEnergy</option>
  93. <option value="setHome">setHome</option>
  94. <option value="setClass">setClass</option>
  95. <option value="setSubType">setSubType</option>
  96. </optgroup>
  97. <optgroup label="Testing">
  98. <option value="ping">ping</option>
  99. </optgroup>
  100. </select>
  101. </div> <!-- /.form-group -->
  102. </div> <!-- /.col-lg.6 -->
  103. </div> <!-- /.row -->
  104. <div class="row">
  105. <div class="col-lg-6">
  106. <div class="form-group">
  107. <label>Parameter #1 Type</label>
  108. <select class="form-control" name="param1" id="param1" size="1">
  109. <option value="string" selected="selected">string</option>
  110. <option value="key">key</option>
  111. <option value="int">int</option>
  112. <option value="float">float</option>
  113. <option value="vector">vector</option>
  114. </select>
  115. </div> <!-- /.form-group -->
  116. </div> <!-- /.col-lg.6 -->
  117. <div class="col-lg-6">
  118. <div class="form-group input-group">
  119. <label>Parameter #1 Data</label>
  120. <input class="form-control" type="text" name="data1" id="data1" placeholder="Enter data">
  121. </div> <!-- /.form-group -->
  122. </div> <!-- /.col-lg.6 -->
  123. </div> <!-- /.row -->
  124. <div class="row">
  125. <div class="col-lg-6">
  126. <div class="form-group">
  127. <label>Parameter #2 Type</label>
  128. <select class="form-control" name="param2" id="param2" size="1">
  129. <option value="string" selected="selected">string</option>
  130. <option value="key">key</option>
  131. <option value="int">int</option>
  132. <option value="float">float</option>
  133. <option value="vector">vector</option>
  134. </select>
  135. </div> <!-- /.form-group -->
  136. </div> <!-- /.col-lg.6 -->
  137. <div class="col-lg-6">
  138. <div class="form-group input-group">
  139. <label>Parameter #2 Data</label>
  140. <input class="form-control" type="text" name="data2" id="data2" placeholder="Enter data">
  141. </div> <!-- /.form-group -->
  142. </div> <!-- /.col-lg.6 -->
  143. </div> <!-- /.row -->
  144. <button type="submit" class="btn btn-default">Submit</button>
  145. <button type="reset" class="btn btn-default">Reset</button>
  146. </form>
  147. </div>
  148. <!-- /.panel-body -->
  149. </div>
  150. <!-- /.panel -->
  151. </div>
  152. <!-- /.col-lg-12 -->
  153. </div>
  154. <!-- /.row -->
  155. </div>
  156. <!-- /#page-wrapper -->
  157. </div>
  158. <!-- /#wrapper -->
  159. {{ template "footer" .}}
  160. {{ end }}