Permalink
Browse files

examples removed from source.

menu removed.
tree structure fixes.
  • Loading branch information...
fsw committed May 24, 2012
1 parent 429f128 commit e7ae206d1f2f49f507f2ed17489d64d730651f4c
Showing with 31 additions and 1,231 deletions.
  1. +4 −2 Makefile
  2. +0 −112 css/menu.css
  3. +0 −25 examples/example1.twr/LICENSE
  4. +0 −13 examples/example1.twr/README
  5. +0 −36 examples/example1.twr/elements/core.xml
  6. +0 −19 examples/example1.twr/elements/equipment.xml
  7. +0 −4 examples/example1.twr/elements/heroes.xml
  8. +0 −4 examples/example1.twr/elements/magic.xml
  9. BIN examples/example1.twr/favicon.png
  10. +0 −107 examples/example1.twr/info.xml
  11. 0 examples/example1.twr/scripts/helpers.js
  12. 0 examples/example1.twr/scripts/validator.js
  13. +0 −25 examples/example2.twr/LICENSE
  14. +0 −17 examples/example2.twr/README
  15. +0 −160 examples/example2.twr/elements/core_units.xml
  16. +0 −4 examples/example2.twr/elements/equipment.xml
  17. +0 −4 examples/example2.twr/elements/heroes.xml
  18. +0 −4 examples/example2.twr/elements/special_units.xml
  19. +0 −4 examples/example2.twr/elements/templates.xml
  20. +0 −4 examples/example2.twr/elements/tournament.xml
  21. 0 examples/example2.twr/errors.xml
  22. BIN examples/example2.twr/icons/icon16.png
  23. BIN examples/example2.twr/icons/icon32.png
  24. BIN examples/example2.twr/icons/icon64.png
  25. +0 −171 examples/example2.twr/info.xml
  26. +0 −3 examples/example2.twr/lang/en.xml
  27. +0 −3 examples/example2.twr/lang/pl.xml
  28. 0 examples/example2.twr/scripts/display.js
  29. 0 examples/example2.twr/scripts/helpers1.js
  30. 0 examples/example2.twr/scripts/validator.js
  31. +4 −102 src/armycalc.js
  32. +0 −275 src/dep.instance.js
  33. +6 −2 src/instance.js
  34. +3 −17 tests/index.css
  35. +1 −1 tests/index.html
  36. +10 −104 web/armycalc.js
  37. +3 −9 web/template.html
View
@@ -23,7 +23,6 @@ JS_FILES = ${SRC_DIR}/armycalc.js\
${SRC_DIR}/sandbox.js
CSS_FILES = ${CSS_DIR}/layout.css\
- ${CSS_DIR}/menu.css\
${CSS_DIR}/statusbar.css\
${CSS_DIR}/toolbar.css\
${CSS_DIR}/validation.css\
@@ -89,4 +88,7 @@ doc:
clean:
@@echo "Cleaning up"
@@rm ${AC}
-
+ @@rm ${AC_CSS}
+ @@rm ${AC_MIN}
+ @@rm ${AC_CSS_MIN}
+
View
@@ -1,112 +0,0 @@
-/* MENU */
-
-div.acCanvas div.menucontainer {
- background: black;
- min-height: 25px;
- color: white;
- line-height: 22px;
- margin-bottom: 7px;
-}
-
-div.acCanvas div.menu {
- position:absolute;
- z-index:10;
- /*
- left:20px;
- margin-left:-2.5em;
- width:80%;
- */
-}
-
-div.acCanvas div.menu #acElements li>ul {
- top: auto;
- left: auto;
-}
-
-div.acCanvas div.menu #acElements {
- list-style: none;
-}
-
-div.acCanvas div.menu #acElements ul {
- padding: 0;
- margin:0;
- list-style: none;
- width:10em;
- z-index:99;
- position:relative;
- overflow:visible;
-}
-
-div.acCanvas div.menu #acElements li {
- margin:0;
- position: relative;
- float:left;
- width: 10em;
- background-color: black;
- border:solid 1px #444;
- display:block;
- height:auto;
-}
-
-div.acCanvas div.menu #acElements ul li{
- background-color: black;
-}
-
-div.acCanvas div.menu #acElements ul li{
- border-width:1px 1px 0 0;
-}
-
-div.acCanvas div.menu #acElements ul ul li{
- border-width:1px 1px 0 1px;
-}
-
-div.acCanvas div.menu #acElements ul ul li:last-child {
- border-width:1px;
-}
-
-div.acCanvas div.menu #acElements a {
- text-align: center;
- text-decoration:none;
- display:block;
- color: white;
- white-space: nowrap;
- /* padding: 0.1em;
- margin:0.2em 0 0.2em 0.1em;
- width:11.5em;
- height:1.05em; */
-}
-
-div.acCanvas div.menu #acElements a:hover {
- background-color: white;
- color: black;
-}
-/* div.acCanvas div.menu #acElements a:hover, div.acCanvas div.menu #acElements li:hover, div.acCanvas div.menu #acElements ul li:hover, div.acCanvas div.menu #acElements ul li a:hover */
-
-div.acCanvas div.menu #acElements ul{
- display:none;
-}
-
-/*all see this */
-div.acCanvas div.menu #acElements ul ul, div.acCanvas div.menu #acElements ul ul ul{
- display:none;
- position:absolute;
- margin-top:-1.8em;
- margin-left:10em;
-}
-
-/* non-IE browsers see this */
-div.acCanvas div.menu #acElements ul li>ul, div.acCanvas div.menu #acElements ul ul li>ul {
- margin-top:-1.35em;
-}
-
-
-div.acCanvas div.menu #acElements li:hover ul ul, div.acCanvas div.menu #acElements li:hover ul ul ul, div.acCanvas div.menu #acElements li:hover ul ul ul ul, div.acCanvas div.menu #acElements li:hover ul ul ul ul ul {
- display:none;
-}
-
-div.acCanvas div.menu #acElements li:hover ul, div.acCanvas div.menu #acElements ul li:hover ul, div.acCanvas div.menu #acElements ul ul li:hover ul, div.acCanvas div.menu #acElements ul ul ul li:hover ul, div.acCanvas div.menu #acElements ul ul ul ul li:hover ul {
- /* display:block; */
-}
-
-
-
@@ -1,25 +0,0 @@
-Copyright 2011 CadoSolutions. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are
-permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice, this list of
- conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice, this list
- of conditions and the following disclaimer in the documentation and/or other materials
- provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY CadoSolutions "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CadoSolutions OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those of the
-authors and should not be interpreted as representing official policies, either expressed
-or implied, of CadoSolutions.
@@ -1,13 +0,0 @@
-
-twr3examples
-this repository contains examples of TWR 3.0 files to share between clients
-part of the ArmyCalc project
-Copyright 2011 CadoSolutions. All rights reserved.
-released under terms of Simplified BSD License
-
-developer: Franciszek Szczepan Wawrzak <frank@wawrzak.com>
-project website: http://armycalc.com/
-
-
-
-
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<elements version="3.0">
-
- <element id="warrior" minCount="1" maxCount="5" minSize="1" defaultSize="5" maxSize="20">
-
- <name>Warrior</name>
- <description>There have to be at least one and maximum 5 units of
- warriors in the army. Each unit can contain from 1 to 20 warriors.
- </description>
-
- <stats><stat id="str">5</stat><stat id="sta">5</stat><stat id="spe">5</stat><stat id="hp">10</stat></stats>
- <costs><cost id="pts">10</cost><cost id="gc">1</cost></costs>
-
- <thumbnail src="media/warrior.jpg"></thumbnail>
-
- <group extends="weapon"/>
-
- <group id="command">
- <element id="chieftain" minCount="0" maxCount="1" minSize="1" maxSize="1">
- <name>Chieftain</name>
- <stats><stat id="str">6</stat><stat id="sta">6</stat><stat id="spe">6</stat><stat id="hp">10</stat></stats>
-
- <element id="squire" minCount="1" maxCount="1" minSize="1" maxSize="1">
- <name>Chieftain's squire</name>
- <stats><stat id="str">1</stat><stat id="sta">1</stat><stat id="spe">1</stat><stat id="hp">1</stat></stats>
- </element>
- </element>
-
- <element id="musician" minCount="0" maxCount="1" minSize="1" maxSize="1">
- <name>Musician</name>
- </element>
- </group>
-
- </element>
-
-</elements>
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<elements version="3.0">
-
- <group id="weapon" minTotalCount="0" maxTotalCount="1">
- <element id="shield" size="inherit" afterAppend="that.parent.stat('sta',that.parent.stat('sta')+1);"
- beforeRemove="that.parent.stat('sta',that.parent.stat('sta')-1);">
- <name>Shield</name>
- <description>Shield is a common equipment</description>
- <costs><cost id="pts">2</cost><cost id="gc">0</cost></costs>
- </element>
-
- <element id="2hWpn" size="inherit">
- <name>2 handed weapon</name>
- <description>Shield is a common equipment</description>
- <costs><cost id="pts">2</cost><cost id="gc">0</cost></costs>
- </element>
- </group>
-
-</elements>
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<elements version="3.0">
-
-</elements>
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<elements version="3.0">
-
-</elements>
Binary file not shown.
@@ -1,107 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<ruleset version="3.0">
-
- <identity>
- <uid>armycalc.twr3.test01</uid>
- <revision>3</revision>
- <url></url>
- </identity>
-
- <languages>
- <language id="pl">
- <transtab src="lang/polish.xml" />
- <name>Polski (polish)</name>
- </language>
- <language id="en" default="true">
- <transtab src="lang/english.xml" />
- <name>English</name>
- </language>
- </languages>
-
- <info>
- <name>Example TWR 3.0</name>
- <author>
- <name>francio</name>
- <email>francio@armycalc.com</email>
- <www></www>
- </author>
- <description>
- <short></short>
- <full></full>
- </description>
- <favicon src="favicon.png" />
- </info>
-
- <stats>
- <stat id="str" display="true">
- <name>strength</name>
- <shortname>Str</shortname>
- <default>5</default>
- </stat>
- <stat id="sta" display="true">
- <name>stamina</name>
- <shortname>Sta</shortname>
- <default>5</default>
- </stat>
- <stat id="spe" display="true">
- <name>speed</name>
- <shortname>Spe</shortname>
- <default>5</default>
- </stat>
- <stat id="hp" display="true">
- <name>hitpoints</name>
- <name>HP</name>
- <shortname>HP</shortname>
- <default>10</default>
- </stat>
- <stat id="us">
- <name>unit size</name>
- <name>US</name>
- <shortname>US</shortname>
- <default>1</default>
- </stat>
- </stats>
-
- <costs>
- <cost id="pts" default="true">
- <name>Points</name>
- <shortname>pts</shortname>
- <unit>pts</unit>
- <default>0</default>
- </cost>
- <cost id="gc">
- <name>Gold Coins</name>
- <shortname>GC</shortname>
- <unit>coins</unit>
- <default>0</default>
- </cost>
- </costs>
-
- <data>
- <elements>
- <elements src="elements/equipment.xml" />
- <elements src="elements/magic.xml" />
- <elements src="elements/core.xml" />
- <elements src="elements/heroes.xml" />
- </elements>
- <scripts>
- <script src="scripts/helpers.js" />
- <script src="scripts/validator.js" />
- </scripts>
- </data>
-
- <armies>
- <army id="defaultArmy">
- <group id="coreUnits">
- <name>Core Units</name>
- <element extends="warriors" />
- <element extends="archers" />
- </group>
- <element extends="hero" />
- </army>
- <army id="tournamentArmy" extends="defaultArmy">
- <element extends="specialHero" />
- </army>
- </armies>
-
-</ruleset>
No changes.
No changes.
@@ -1,25 +0,0 @@
-Copyright 2011 CadoSolutions. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are
-permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice, this list of
- conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice, this list
- of conditions and the following disclaimer in the documentation and/or other materials
- provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY CadoSolutions "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CadoSolutions OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those of the
-authors and should not be interpreted as representing official policies, either expressed
-or implied, of CadoSolutions.
@@ -1,17 +0,0 @@
-README
-
-This archive is a TWR file containing tabletop wargame data.
-This file is added to every TWR and it is not the part of the ruleset itself.
-
-####################
-List of required files that should be in this package:
-
-README - this file.
-LICENCE - licence of this data choosen by the author.
-info.xml - most important ruleset info.
-
-every other file here is specific to this game and should be referenced in info.xml in data section
-
-####################
-This file was build on armycalc.net a collaborative space for wargame players
-Please visit armycalc.net for more info
Oops, something went wrong.

0 comments on commit e7ae206

Please sign in to comment.