Commits

Anonymous committed 9fe60d7

Updated stylesheet to not use a border (created a 1 pixel bit of noise on the top, right, and bottom). On Latest JavaFX 8 builds we get a funny gradient as a consequence, however I'm fixing this bug! Ru
n with -Dprism.disableRegionCaching=true as a workaround.

Comments (0)

Files changed (2)

defender/.idea/workspace.xml

     <ignored path=".idea/workspace.xml" />
     <file path="/BadGuy.java" changelist="7ebb0500-e9c0-4971-9727-f288d5dd7f6e" time="1355255727703" ignored="false" />
     <file path="/Sprite.java" changelist="7ebb0500-e9c0-4971-9727-f288d5dd7f6e" time="1355255891142" ignored="false" />
+    <file path="/GameView.java" changelist="7ebb0500-e9c0-4971-9727-f288d5dd7f6e" time="1355256697759" ignored="false" />
+    <file path="/styles.css" changelist="7ebb0500-e9c0-4971-9727-f288d5dd7f6e" time="1355257304210" ignored="false" />
+    <file path="/fragment.java" changelist="7ebb0500-e9c0-4971-9727-f288d5dd7f6e" time="1355257399624" ignored="false" />
     <option name="TRACKING_ENABLED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
   </component>
   <component name="FileEditorManager">
     <leaf>
-      <file leaf-file-name="CONSTANTS.java" pinned="false" current="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/CONSTANTS.java">
+      <file leaf-file-name="styles.css" pinned="false" current="true" current-in-tab="true">
+        <entry file="file://$PROJECT_DIR$/src/main/resources/styles/styles.css">
           <provider selected="true" editor-type-id="text-editor">
-            <state line="15" column="13" selection-start="321" selection-end="321" vertical-scroll-proportion="0.0">
+            <state line="10" column="11" selection-start="454" selection-end="454" vertical-scroll-proportion="0.13793103">
               <folding />
             </state>
           </provider>
         </entry>
       </file>
-      <file leaf-file-name="DefenderApp.java" pinned="false" current="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/DefenderApp.java">
+      <file leaf-file-name="GameView.java" pinned="false" current="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/ui/GameView.java">
           <provider selected="true" editor-type-id="text-editor">
-            <state line="35" column="13" selection-start="1813" selection-end="1813" vertical-scroll-proportion="0.0">
-              <folding />
-            </state>
-          </provider>
-        </entry>
-      </file>
-      <file leaf-file-name="Game.java" pinned="false" current="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/Game.java">
-          <provider selected="true" editor-type-id="text-editor">
-            <state line="96" column="5" selection-start="4187" selection-end="4187" vertical-scroll-proportion="0.0">
+            <state line="46" column="0" selection-start="2161" selection-end="2191" vertical-scroll-proportion="0.0">
               <folding />
             </state>
           </provider>
           </provider>
         </entry>
       </file>
-      <file leaf-file-name="BadGuy.java" pinned="false" current="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/BadGuy.java">
+      <file leaf-file-name="Level.java" pinned="false" current="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/Level.java">
           <provider selected="true" editor-type-id="text-editor">
-            <state line="43" column="55" selection-start="2144" selection-end="2144" vertical-scroll-proportion="0.0">
+            <state line="39" column="22" selection-start="1999" selection-end="1999" vertical-scroll-proportion="0.0">
               <folding />
             </state>
           </provider>
         </entry>
       </file>
-      <file leaf-file-name="Sprite.java" pinned="false" current="true" current-in-tab="true">
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/Sprite.java">
+      <file leaf-file-name="Game.java" pinned="false" current="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/Game.java">
           <provider selected="true" editor-type-id="text-editor">
-            <state line="44" column="24" selection-start="2376" selection-end="2376" vertical-scroll-proportion="0.3256705">
+            <state line="49" column="29" selection-start="2487" selection-end="2495" vertical-scroll-proportion="-4.8846154">
               <folding />
             </state>
           </provider>
       <list>
         <option value="$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/BadGuy.java" />
         <option value="$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/Sprite.java" />
+        <option value="$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/LevelFactory.java" />
+        <option value="$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/ui/GameView.java" />
+        <option value="$PROJECT_DIR$/src/main/resources/styles/styles.css" />
       </list>
     </option>
   </component>
     <property name="MemberChooser.copyJavadoc" value="false" />
     <property name="GoToClass.toSaveIncludeLibraries" value="false" />
     <property name="WebServerToolWindowFactoryState" value="false" />
+    <property name="restartRequiresConfirmation" value="true" />
     <property name="MemberChooser.showClasses" value="true" />
     <property name="GoToClass.includeLibraries" value="false" />
     <property name="dynamic.classpath" value="false" />
         </pattern>
       </extension>
       <option name="MAIN_CLASS_NAME" value="com.fxexperience.games.defender.DefenderApp" />
-      <option name="VM_PARAMETERS" />
-      <option name="PROGRAM_PARAMETERS" />
-      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+      <option name="VM_PARAMETERS" value="-Dprism.disableRegionCaching=true " />
+      <option name="PROGRAM_PARAMETERS" value="" />
+      <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
-      <option name="ALTERNATIVE_JRE_PATH" />
+      <option name="ALTERNATIVE_JRE_PATH" value="" />
       <option name="ENABLE_SWING_INSPECTOR" value="false" />
       <option name="ENV_VARIABLES" />
       <option name="PASS_PARENT_ENVS" value="true" />
       <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
       <window_info id="JetGradle" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
       <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32975206" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
       <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24980111" sideWeight="0.6702479" order="1" side_tool="false" content_ui="tabs" />
       <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
       <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
       <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32975206" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
       <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
       <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
       <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
       <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
     </layout>
     <option name="FILTER_TARGETS" value="false" />
   </component>
   <component name="editorHistoryManager">
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/Cell.java">
-      <provider selected="true" editor-type-id="text-editor">
-        <state line="39" column="13" selection-start="1846" selection-end="1846" vertical-scroll-proportion="0.0">
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/Level.java">
-      <provider selected="true" editor-type-id="text-editor">
-        <state line="39" column="22" selection-start="1999" selection-end="1999" vertical-scroll-proportion="0.0">
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/Tower.java">
-      <provider selected="true" editor-type-id="text-editor">
-        <state line="30" column="13" selection-start="1648" selection-end="1648" vertical-scroll-proportion="0.0">
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/BadGuyFactory.java">
-      <provider selected="true" editor-type-id="text-editor">
-        <state line="17" column="13" selection-start="433" selection-end="433" vertical-scroll-proportion="0.0">
-          <folding />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/ui/GameView.java">
-      <provider selected="true" editor-type-id="text-editor">
-        <state line="40" column="13" selection-start="2021" selection-end="2021" vertical-scroll-proportion="0.0">
-          <folding />
-        </state>
-      </provider>
-    </entry>
     <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/ui/LevelCompleteView.java">
       <provider selected="true" editor-type-id="text-editor">
         <state line="38" column="13" selection-start="1928" selection-end="1928" vertical-scroll-proportion="0.0">
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/EnemyPath.java">
-      <provider selected="true" editor-type-id="text-editor">
-        <state line="18" column="13" selection-start="400" selection-end="400" vertical-scroll-proportion="-0.24904214">
-          <folding />
-        </state>
-      </provider>
-    </entry>
     <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/CONSTANTS.java">
       <provider selected="true" editor-type-id="text-editor">
         <state line="15" column="13" selection-start="321" selection-end="321" vertical-scroll-proportion="0.0">
         </state>
       </provider>
     </entry>
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/Sprite.java">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="61" column="19" selection-start="2621" selection-end="2628" vertical-scroll-proportion="0.651341">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/BadGuy.java">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="85" column="8" selection-start="3599" selection-end="3599" vertical-scroll-proportion="0.42911878">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/Cell.java">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="39" column="13" selection-start="1846" selection-end="1846" vertical-scroll-proportion="0.0">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/LevelFactory.java">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="58" column="31" selection-start="1754" selection-end="1754" vertical-scroll-proportion="0.0">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/EnemyPath.java">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="44" column="17" selection-start="1247" selection-end="1247" vertical-scroll-proportion="0.0">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/WaveSlot.java">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="15" column="13" selection-start="324" selection-end="324" vertical-scroll-proportion="0.1724138">
+          <folding />
+        </state>
+      </provider>
+    </entry>
     <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/Game.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="96" column="5" selection-start="4187" selection-end="4187" vertical-scroll-proportion="0.0">
+        <state line="49" column="29" selection-start="2487" selection-end="2495" vertical-scroll-proportion="-4.8846154">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/level/Level.java">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="39" column="22" selection-start="1999" selection-end="1999" vertical-scroll-proportion="0.0">
           <folding />
         </state>
       </provider>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/BadGuy.java">
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/ui/GameView.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="43" column="55" selection-start="2144" selection-end="2144" vertical-scroll-proportion="0.0">
+        <state line="46" column="0" selection-start="2161" selection-end="2191" vertical-scroll-proportion="0.0">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/fxexperience/games/defender/sprite/Sprite.java">
+    <entry file="file://$PROJECT_DIR$/src/main/resources/styles/styles.css">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="44" column="24" selection-start="2376" selection-end="2376" vertical-scroll-proportion="0.3256705">
+        <state line="10" column="11" selection-start="454" selection-end="454" vertical-scroll-proportion="0.13793103">
           <folding />
         </state>
       </provider>

defender/src/main/resources/styles/styles.css

 
 .gameToolBox {
     -fx-padding: 10;
-    -fx-border-color: gray;
-    -fx-background-color: #ffffdd;
+    -fx-background-color: gray, #ffffdd;
+    -fx-background-insets: 0, 0 0 0 1;
 }
 
 .newGameView,