Skip to content

Commit

Permalink
Add enableSynphne config
Browse files Browse the repository at this point in the history
Asset path compatible with Intellij
  • Loading branch information
ramvibhakar committed Aug 12, 2015
1 parent 117a751 commit 51ab048
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 14 deletions.
17 changes: 13 additions & 4 deletions KSKInterface/KSKInterface.iml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<entry library-id="022304c5-d4d7-49a4-b3e0-f3a75d0df079">
<dependency linkage="Merged" />
</entry>
<entry library-id="6e9fbefc-b107-44cf-825d-18e19d90588f">
<dependency linkage="Merged" />
</entry>
</entries>
<sdk name="AIRSDK_Compiler" />
</dependencies>
Expand Down Expand Up @@ -79,9 +82,15 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module" module-name="Gestouch" exported="" />
<orderEntry type="module" module-name="FLV Encoder" exported="" />
<orderEntry type="module" module-name="CollisionDetectionKit_v15" exported="" />
<orderEntry type="module" module-name="KSKLibrary" exported="" />
<orderEntry type="module-library" exported="">
<library type="flex">
<properties id="6e9fbefc-b107-44cf-825d-18e19d90588f" />
<CLASSES>
<root url="jar://$DOCUMENTS$/as3commons-collections-1.3.2.swc!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>
12 changes: 6 additions & 6 deletions KSKInterface/src/sg/edu/smu/ksketch2/KSketchAssets.as
Original file line number Diff line number Diff line change
Expand Up @@ -385,27 +385,27 @@ package sg.edu.smu.ksketch2
public static var actionList_save:Class;

//KSKETCH-SYNPHNE
[Embed("assets/Button_Texture_Instructions_1.png")]
[Embed("/assets/Button_Texture_Instructions_1.png")]
[Bindable]
public static var texture_instructions_1:Class;

[Embed("assets/Button_Texture_Instructions_2.png")]
[Embed("/assets/Button_Texture_Instructions_2.png")]
[Bindable]
public static var texture_instructions_2:Class;

[Embed("assets/Button_Texture_Instructions_Next.png")]
[Embed("/assets/Button_Texture_Instructions_Next.png")]
[Bindable]
public static var texture_instructions_next:Class;

[Embed("assets/Button_Texture_Instructions_Prev.png")]
[Embed("/assets/Button_Texture_Instructions_Prev.png")]
[Bindable]
public static var texture_instructions_prev:Class;

[Embed("assets/Star_Empty_KSketch.png")]
[Embed("/assets/Star_Empty_KSketch.png")]
[Bindable]
public static var star_empty:Class;

[Embed("assets/Star_Fill_KSketch.png")]
[Embed("/assets/Star_Fill_KSketch.png")]
[Bindable]
public static var star_fill:Class;
}
Expand Down
3 changes: 2 additions & 1 deletion KSKInterface/src/sg/edu/smu/ksketch2/KSketch_Config.as
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package sg.edu.smu.ksketch2 {
public class KSketch_Config {
public static const host_name = "http://ksketch.smu.edu.sg"
public static const email = "[email protected]"
public static var isMobile:Boolean = false;
public static var isMobile:Boolean = true;
public static var enableSynphne:Boolean = false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
xmlns:transformWidget2="sg.edu.smu.ksketch2.canvas.components.transformWidget.*"
xmlns:timebar="sg.edu.smu.ksketch2.canvas.components.timebar.*"
addedToStage="initializeTrackerForWeb()"
initialize="_initCanvas(false, true)"
initialize="_initCanvas(false, KSketch_Config.enableSynphne)"
add="_checkForImageData()"
creationPolicy="all"
destructionPolicy="auto"
Expand All @@ -36,7 +36,9 @@
import mx.graphics.codec.JPEGEncoder;
import mx.managers.PopUpManager;
import mx.utils.Base64Encoder;
import sg.edu.smu.ksketch2.KSketch_Config;
import spark.events.ViewNavigatorEvent;
import spark.managers.PersistenceManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
xmlns:view="sg.edu.smu.ksketch2.canvas.components.view.*"
xmlns:buttons="sg.edu.smu.ksketch2.canvas.components.buttons.*"
xmlns:popup="sg.edu.smu.ksketch2.canvas.components.popup.*"
initialize="_init(true)"
initialize="_init(KSketch_Config.isMobile)"
addedToStage="_scale()"
destructionPolicy="auto"
>
Expand All @@ -38,6 +38,7 @@
import sg.edu.smu.ksketch2.KSketchAssets;
import sg.edu.smu.ksketch2.KSketchGlobals;
import sg.edu.smu.ksketch2.KSketch_Config;
import sg.edu.smu.ksketch2.canvas.KSketch_CanvasView_Preferences;
import sg.edu.smu.ksketch2.canvas.KSketch_LoginView;
import sg.edu.smu.ksketch2.canvas.components.popup.KSketch_DialogBox_Notifications;
Expand Down

0 comments on commit 51ab048

Please sign in to comment.