|
@@ -1770,16 +1770,41 @@ public class GameMapEditor : EditorWindow
|
|
|
rr.width = 1f;
|
|
rr.width = 1f;
|
|
|
for (int i = 0; i <= w; i++)
|
|
for (int i = 0; i <= w; i++)
|
|
|
{
|
|
{
|
|
|
|
|
+ bool colorIsChange = false;
|
|
|
|
|
+ if(i%30 == 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ GUI.backgroundColor = Color.red;
|
|
|
|
|
+ colorIsChange = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ else if(i%10 == 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ GUI.backgroundColor = Color.green;
|
|
|
|
|
+ colorIsChange = true;
|
|
|
|
|
+ }
|
|
|
rr.x = r.x + (i * tileDrawSz);
|
|
rr.x = r.x + (i * tileDrawSz);
|
|
|
Styles.SolidWhite.Draw(rr, false, false, false, false);
|
|
Styles.SolidWhite.Draw(rr, false, false, false, false);
|
|
|
|
|
+ if(colorIsChange)
|
|
|
|
|
+ {
|
|
|
|
|
+ GUI.backgroundColor = gridColor;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
rr = r;
|
|
rr = r;
|
|
|
rr.height = 1f;
|
|
rr.height = 1f;
|
|
|
for (int i = 0; i <= h; i++)
|
|
for (int i = 0; i <= h; i++)
|
|
|
{
|
|
{
|
|
|
|
|
+ bool colorIsChange = false;
|
|
|
|
|
+ if (i%5 == 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ GUI.backgroundColor = new Color32(50,198,252,255);
|
|
|
|
|
+ colorIsChange = true;
|
|
|
|
|
+ }
|
|
|
rr.y = r.y + (i * tileDrawSz);
|
|
rr.y = r.y + (i * tileDrawSz);
|
|
|
Styles.SolidWhite.Draw(rr, false, false, false, false);
|
|
Styles.SolidWhite.Draw(rr, false, false, false, false);
|
|
|
|
|
+ if(colorIsChange)
|
|
|
|
|
+ {
|
|
|
|
|
+ GUI.backgroundColor = gridColor;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
GUI.backgroundColor = Color.white;
|
|
GUI.backgroundColor = Color.white;
|