From 1e587f7dd103f1f9f595122118deb67398d0843f Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 16 Sep 2014 17:15:35 +0100 Subject: [PATCH] Added Note command --- Assets/Example/Scenes/Example.unity | Bin 133220 -> 134908 bytes .../Fungus/FungusScript/Commands/Comment.cs | 31 ++++++++++++++++++ .../FungusScript/Commands/Comment.cs.meta | 8 +++++ 3 files changed, 39 insertions(+) create mode 100644 Assets/Fungus/FungusScript/Commands/Comment.cs create mode 100644 Assets/Fungus/FungusScript/Commands/Comment.cs.meta diff --git a/Assets/Example/Scenes/Example.unity b/Assets/Example/Scenes/Example.unity index 6cdd3f0c84d8f9b49ccc4174ad7588281111a692..ea78949f92f8e3ef06a930512df96edaeb5bc19b 100644 GIT binary patch delta 3036 zcmZA3dr(wW90&08TV9KqtmcF>(XTD%q)rMXDkKZ|G}C|@c9HbrGPOTjt7K2g}GrluzSKrVERJFOt4_lSkS!{3V?MU0if)C7;hSTSQ8U|pgeljC4J@qI}2{T60e$(Vc@ z2ZbGnWx%3fH$^KMu}7F4z$$<`N$E(0S&yYx!n#DW!JII8z+o}qDp(iHhK`Sgt%jwe zRLF-t5w-@_4%1G2r7`HUK3Jw5f$GFpfoZFhQmZAr25X0{MO=qyQ!k9mOkR!7n!fQc z4@@rgLosmz%m*{U)bS!xv$9gxFqS9!+U3a&z!spktm9!xm{q%y2`~>#yONyQQQ7S< z?PapSQUTiWa^*Of_A)J-9c9l>Ul(|ttO)eLw3ED^F+R5)wp3&-C;bL&%KE_7y$N%` z%sBr@RN?ra-ML*bZM9CoQjwjBq5f)Vnt^VhwuD(_oz^~B2xgQgm0LEF0sIz7++idTzNcL3gYg|edX)F44B|x%!=bb#DG>9;A*8D+t!e+{q}*ouzowd1h#?Tnp*sgLd8k(!2Q%m|n-&UqMPcZjLV4 zwkPn3c>-qG%UCrA3>K{!=7Grx-V}43geAC?JFHVNJNpi}7MP4cfy@hQdCn&6Oeq|I zP1GcFXIcFkLk(k#&{w_gcVSkT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Yi(5 z3h{NSe{^5M+F?0Fj>uQ)SHMA_^49;MCiAqozuLB!$S4v06%!t(i;`;Ws19lwDP$)s z2s;2XsKX0u{vw>rZ|ZtyUp-ImIOMqFJ7)Bx=%=3ax-;=W{0E^cp^RVjh zh9Gv$$6W2H_QS01@Wxs)bAv^j{IEU*X*co{o!s2*5JVNa$v*>=TcTU%609AjZ@V5? z!lCH4`_)pk#R4nUt#=LPffc~CWUj-4Fy;Hep?x9j9s8v&t2H{AeXw?zzK@$>$%l#1 zd66HRFJNAn{vD|6_Sg5q&gqh=hczFGO2$E3fqg*qO{BLSu#Iie&Ee z!4i&!=W4yZ9o7z0`slVAw*zKA7QJ2r%z11<^yEgM$rJ8{Tk7PUFe?n*8fn%H`J9cH zvdP+0yx8*5yB+6dtS;=V%0D5`S;1FXo>tBIEUYzbkjrW~yPC&~uW#@NV)zE9i*7d? zh26{{u4Dkesr;2fpSQbA%;>=JEvhgt| zGfxp2Pk4cBf5OJ`%5p~8Kg>BXqHBmv7PLCyy(8=B;q2b$UD^1Ef6`+7I$${8QO=aV zg_NW6yP+JbaCDbTS?)y1*XT$bz;W0f*1q1(j8Nz!pn6Ey;N a>YOZfiSo&avQClmSY%F-;)OR(%KHzXU{q27 diff --git a/Assets/Fungus/FungusScript/Commands/Comment.cs b/Assets/Fungus/FungusScript/Commands/Comment.cs new file mode 100644 index 00000000..88dbc9c8 --- /dev/null +++ b/Assets/Fungus/FungusScript/Commands/Comment.cs @@ -0,0 +1,31 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +namespace Fungus +{ + [CommandInfo("Scripting", + "Note", + "Records design notes and reminders about your script.")] + public class Comment : Command + { + [TextArea(2,4)] + public string commentText = ""; + + public override void OnEnter() + { + Continue(); + } + + public override string GetSummary() + { + return commentText; + } + + public override Color GetButtonColor() + { + return new Color32(220, 220, 220, 255); + } + } + +} \ No newline at end of file diff --git a/Assets/Fungus/FungusScript/Commands/Comment.cs.meta b/Assets/Fungus/FungusScript/Commands/Comment.cs.meta new file mode 100644 index 00000000..658cd6f1 --- /dev/null +++ b/Assets/Fungus/FungusScript/Commands/Comment.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 69d14ccff3ce441ecba28c9a53b98a08 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: