1using System.Collections.Generic;
2using CreativeSpore.SuperTilemapEditor;
20 HashSet<int> hashSet =
new HashSet<int>();
25 hashSet.Add(value.
icon);
28 foreach (
int item in hashSet)
33 uIButton.
icon.Rect().localScale =
new Vector3(2f, 2f, 1f);
34 uIButton.SetOnClick(delegate
37 EClass._zone.icon = _i;
38 EClass.
ui.contextMenu.currentMenu.Hide();
42 uIContextMenu4.Show();
45 p.
TrySetAct(
"actChangeBlockHeight", delegate
50 EClass._map.config.blockHeight = b * 0.1f;
51 }, 0f, 40f, isInt:
true, hideOther:
false);
52 uIContextMenu3.
Show();
55 p.
TrySetAct(
"actChangeSkyBlockHeight", delegate
60 EClass._map.config.skyBlockHeight = (int)b;
61 }, 1f, 20f, isInt:
true, hideOther:
false);
62 uIContextMenu2.
Show();
68 List<MapBG> list2 =
Util.EnumToList<
MapBG>();
69 for (
int j = 0; j < list2.Count; j++)
71 layerList2.
Add(list2[j].ToString(), delegate(
int a)
73 EClass._map.config.bg = list2[a];
80 p.
TrySetAct(
"actChangeShadowStrength", delegate
83 uIContextMenu.
AddSlider(
"adjustment", (
float a) => a +
"%", EClass._map.config.shadowStrength * 100f, delegate(
float b)
85 EClass._map.config.shadowStrength = b * 0.01f;
87 }, 0f, 400f, isInt:
true, hideOther:
false);
91 p.
TrySetAct(
"actChangeFogDensity", delegate
95 for (
int i = 0; i < list.Count; i++)
97 layerList.
Add(list[i].ToString(), delegate(
int a)
99 EClass._map.config.fog = list[a];
106 p.
TrySetAct(
"actChangeSkyColor", delegate
115 p.
TrySetAct(
"actChangeSeaColor", delegate
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
static BaseGameScreen screen
void SetZone(int gx, int gy, Zone z, bool updateMesh=false)
void Show(bool autoClose=true)
void Add(string lang, Action< int > action)
SerializableColor colorSea
SerializableColor colorScreen
SerializableColor Set(Color color)
override void TrySetAct(ActPlan p)