Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUI.depth = -2;
- GUI.skin = bo;
- GUI.Box (new Rect(Screen.width/2 - Perc(25), Screen.height/2 - Perc(33), Perc(50), Perc(66)),"");
- GUI.skin = main;
- main.button.alignment = TextAnchor.MiddleLeft;
- GUILayout.BeginArea(new Rect(Screen.width/2 - Perc(20), Screen.height/2 - Perc(27), Perc(50), Perc(50)));
- ScrollPos = GUILayout.BeginScrollView(ScrollPos);
- GUILayout.BeginVertical();
- if (GUILayout.Button(flaxicon, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.seeds>=2)
- {
- DNS.flax+=1;
- DNS.seeds-=2;
- }
- if (GUILayout.Button(woolhat, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.flax>=3)
- {
- DNS.winterhat+=1;
- DNS.flax-=3;
- }
- if (GUILayout.Button(woolsuit, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.flax>=7)
- {
- DNS.wintercloth+=1;
- DNS.flax-=7;
- }
- if (GUILayout.Button(ironhelmet, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.iron>=3)
- {
- DNS.helmet+=1;
- DNS.iron-=3;
- }
- if (GUILayout.Button(ironcuirass, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.iron>=7)
- {
- DNS.armorcloth+=1;
- DNS.iron-=7;
- }
- if (GUILayout.Button(leatherhelmet, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.leather>=3)
- {
- DNS.leatherhelmet+=1;
- DNS.leather-=3;
- }
- if (GUILayout.Button(leathercuirass, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.leather>=7)
- {
- DNS.leathercloth+=1;
- DNS.leather-=7;
- }
- if (GUILayout.Button(bet, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.wood>=5)
- {
- DNS.betcount+=1;
- DNS.wood-=5;
- }
- if (GUILayout.Button(sword, GUILayout.Width(Perc(40)), GUILayout.Height(Perc(10))) && DNS.iron>=3)
- {
- DNS.swords+=1;
- DNS.iron-=3;
- }
- GUILayout.EndVertical();
- GUILayout.EndScrollView();
- GUILayout.EndArea();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement