Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions Assembly-CSharp-vs.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{80CE8C27-FECA-E020-5EC6-DCB3914EBC42}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<AssemblyName>Assembly-CSharp</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;UNITY_3_4_0;UNITY_3_4;UNITY_EDITOR;ENABLE_PROFILER;UNITY_STANDALONE_OSX;ENABLE_GENERICS;ENABLE_DUCK_TYPING;ENABLE_TERRAIN;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CLOTH;ENABLE_WWW</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Temp\bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.XML" />
<Reference Include="System.Core" />
<Reference Include="UnityEngine">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Misc\Menu.cs" />
<Compile Include="Assets\Scripts\Facebook.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\HorizontalLayoutBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\ILayoutBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\InteractionBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\LayoutBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\VerticalLayoutBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Configs\ScreenConfig.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\Button.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\CameraScreen.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\Control.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\Frame.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\GUIPlane.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\Panel.cs" />
<Compile Include="Assets\Scripts\GUILib\EventArgs\MouseEventArgs.cs" />
<Compile Include="Assets\Scripts\GUILib\Samples\SampleUIController.cs" />
<Compile Include="Assets\Scripts\GUILib\Samples\TestAllInteractionsBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Samples\TestMoveWithMouse.cs" />
<Compile Include="Assets\Scripts\GUILib\Samples\TestUIControllerBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Wrapper\InputEvents.cs" />
<Compile Include="Assets\Scripts\General\ControlManager.cs" />
<Compile Include="Assets\Scripts\General\Controller.cs" />
<Compile Include="Assets\Scripts\General\Samples\BehaviourEventArgs.cs" />
<Compile Include="Assets\Scripts\General\Samples\SampleMovementController.cs" />
<Compile Include="Assets\Scripts\General\TimeBehaviour.cs" />
<Compile Include="Assets\Scripts\General\Timer.cs" />
<Compile Include="Assets\Scripts\ResourceManager\ResourceLoadingBehaviour.cs" />
<Compile Include="Assets\Scripts\ResourceManager\ResourceManager.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->

</Project>

86 changes: 86 additions & 0 deletions Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{80CE8C27-FECA-E020-5EC6-DCB3914EBC42}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<AssemblyName>Assembly-CSharp</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;UNITY_3_4_0;UNITY_3_4;UNITY_EDITOR;ENABLE_PROFILER;UNITY_STANDALONE_OSX;ENABLE_GENERICS;ENABLE_DUCK_TYPING;ENABLE_TERRAIN;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CLOTH;ENABLE_WWW</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Temp\bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.XML" />
<Reference Include="System.Core" />
<Reference Include="UnityEngine">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:/Program Files (x86)/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Misc\Menu.cs" />
<Compile Include="Assets\Scripts\Facebook.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\HorizontalLayoutBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\ILayoutBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\InteractionBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\LayoutBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Behaviours\VerticalLayoutBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Configs\ScreenConfig.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\Button.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\CameraScreen.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\Control.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\Frame.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\GUIPlane.cs" />
<Compile Include="Assets\Scripts\GUILib\Elements\Panel.cs" />
<Compile Include="Assets\Scripts\GUILib\EventArgs\MouseEventArgs.cs" />
<Compile Include="Assets\Scripts\GUILib\Samples\SampleUIController.cs" />
<Compile Include="Assets\Scripts\GUILib\Samples\TestAllInteractionsBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Samples\TestMoveWithMouse.cs" />
<Compile Include="Assets\Scripts\GUILib\Samples\TestUIControllerBehaviour.cs" />
<Compile Include="Assets\Scripts\GUILib\Wrapper\InputEvents.cs" />
<Compile Include="Assets\Scripts\General\ControlManager.cs" />
<Compile Include="Assets\Scripts\General\Controller.cs" />
<Compile Include="Assets\Scripts\General\Samples\BehaviourEventArgs.cs" />
<Compile Include="Assets\Scripts\General\Samples\SampleMovementController.cs" />
<Compile Include="Assets\Scripts\General\TimeBehaviour.cs" />
<Compile Include="Assets\Scripts\General\Timer.cs" />
<Compile Include="Assets\Scripts\ResourceManager\ResourceLoadingBehaviour.cs" />
<Compile Include="Assets\Scripts\ResourceManager\ResourceManager.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->

</Project>

Binary file added Assembly-CSharp.pidb
Binary file not shown.
Binary file added Assets/Materials/guiPlane-No Name.mat
Binary file not shown.
Binary file added Assets/Scenes/GUILib.unity
Binary file not shown.
Binary file added Assets/Scenes/GUILib_testPlanes.unity
Binary file not shown.
7 changes: 6 additions & 1 deletion Assets/Scripts/Facebook.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using UnityEngine;
using System.Runtime.InteropServices;
using System;

public class Facebook : MonoBehaviour {
public string AppId;
Expand Down Expand Up @@ -105,5 +104,11 @@ private static void _deleteSession() {}
extern static private void _graphRequest(string methodname, string[] param, string method);
[System.Runtime.InteropServices.DllImport("__Internal")]
extern static private void _deleteSession();
#else
private static void _init(string AppId) {}
private static void _authorize(int permissions) {getInstance().loggedOut();}
private static void _logout() {getInstance().loggedOut();}
private static void _graphRequest(string methodname, string[] param, string method) {getInstance().requestFailed("Not implemented");}
private static void _deleteSession() {}
#endif
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
77 changes: 77 additions & 0 deletions Assets/Scripts/GUILib/Assets/Media/guiPlane.dae
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<contributor>
<author>Blender User</author>
<authoring_tool>Blender 2.60.0 r41226</authoring_tool>
</contributor>
<created>2011-11-11T13:23:13</created>
<modified>2011-11-11T13:23:13</modified>
<unit name="meter" meter="1"/>
<up_axis>Z_UP</up_axis>
</asset>
<library_images/>
<library_effects/>
<library_materials/>
<library_geometries>
<geometry id="Plane-mesh">
<mesh>
<source id="Plane-mesh-positions">
<float_array id="Plane-mesh-positions-array" count="12">1 1 0 1 -1 0 -1 -0.9999998 0 -0.9999997 1 0</float_array>
<technique_common>
<accessor source="#Plane-mesh-positions-array" count="4" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Plane-mesh-normals">
<float_array id="Plane-mesh-normals-array" count="3">0 0 1</float_array>
<technique_common>
<accessor source="#Plane-mesh-normals-array" count="1" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Plane-mesh-map-0">
<float_array id="Plane-mesh-map-0-array" count="8">1 1 0 1 0 0 1 0</float_array>
<technique_common>
<accessor source="#Plane-mesh-map-0-array" count="4" stride="2">
<param name="S" type="float"/>
<param name="T" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="Plane-mesh-vertices">
<input semantic="POSITION" source="#Plane-mesh-positions"/>
</vertices>
<polylist count="1">
<input semantic="VERTEX" source="#Plane-mesh-vertices" offset="0"/>
<input semantic="NORMAL" source="#Plane-mesh-normals" offset="1"/>
<input semantic="TEXCOORD" source="#Plane-mesh-map-0" offset="2" set="0"/>
<vcount>4 </vcount>
<p>0 0 0 3 0 1 2 0 2 1 0 3</p>
</polylist>
</mesh>
<extra><technique profile="MAYA"><double_sided>1</double_sided></technique></extra>
</geometry>
</library_geometries>
<library_visual_scenes>
<visual_scene id="Scene" name="Scene">
<node id="Plane" type="NODE">
<translate sid="location">0 0 0</translate>
<rotate sid="rotationZ">0 0 1 0</rotate>
<rotate sid="rotationY">0 1 0 0</rotate>
<rotate sid="rotationX">1 0 0 0</rotate>
<scale sid="scale">1 1 1</scale>
<instance_geometry url="#Plane-mesh"/>
</node>
</visual_scene>
</library_visual_scenes>
<scene>
<instance_visual_scene url="#Scene"/>
</scene>
</COLLADA>
Binary file not shown.
15 changes: 15 additions & 0 deletions Assets/Scripts/GUILib/Behaviours/HorizontalLayoutBehaviour.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;

public class HorizontalLayoutBehaviour : MonoBehaviour {

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

}
}
15 changes: 15 additions & 0 deletions Assets/Scripts/GUILib/Behaviours/ILayoutBehaviour.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;

public class ILayoutBehaviour : MonoBehaviour {

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

}
}
23 changes: 23 additions & 0 deletions Assets/Scripts/GUILib/Behaviours/InteractionBehaviour.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using UnityEngine;
using System.Collections;

public class InteractionBehaviour : MonoBehaviour{

// DONT USE THIS
void Awake(){
AwakeOverride();
}

// USE THIS FOR INITIALISATION
protected virtual void AwakeOverride(){

}

public virtual void Click(MouseEventArgs mouse){}
public virtual void Hover(MouseEventArgs mouse){}
public virtual void Down(MouseEventArgs mouse){}
public virtual void Up(MouseEventArgs mouse){}
public virtual void Move(MouseEventArgs mouse){}
public virtual void Swipe(MouseEventArgs mouse){}

}
15 changes: 15 additions & 0 deletions Assets/Scripts/GUILib/Behaviours/LayoutBehaviour.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;

public class LayoutBehaviour : MonoBehaviour {

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

}
}
15 changes: 15 additions & 0 deletions Assets/Scripts/GUILib/Behaviours/VerticalLayoutBehaviour.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;

public class VerticalLayoutBehaviour : MonoBehaviour {

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

}
}
9 changes: 9 additions & 0 deletions Assets/Scripts/GUILib/Configs/ScreenConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using UnityEngine;
using System.Collections;

public static class ScreenConfig {

public static int TargetScreenWidth = 960;
public static int TargetScreenHeight = 640;
public static float ScreenAspect = 1.0f;
}
Loading