Skip to content
Merged
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
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,16 @@ It is recommended to subscribe to the NML item on the Steam Workshop to receive

### Android Installation

1. Download and install the mono version of worldbox
2. Move NeoModLoader.dll to Android/data/com.mkarpenko.worldbox/mods
1. Use a suitable Mono mod loader for worldbox, like FusionCore
2. Move NeoModLoader.dll to <Persistentdata>/mods
3. enable experimental mode and start the game

### IOS Installation

1. Sideload a mono ipa of worldbox.
2. enable JIT in a suitable way, jailbreak, stikdebug, etc.
3. move NeoModLoader to files/Worldbox/mods
4. enable experimental mode and launch the game with JIT enabled

<h2 align="center">Others</h2>
<h3 align="center">
Expand Down
2 changes: 1 addition & 1 deletion resources/commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4773c590604d5af711ff15ddc21b18f092234163
0ea14149cfb7e94f0bed8a0837a677ccf131b91f
21 changes: 12 additions & 9 deletions services/PCInputSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ public static bool GetButtonUp2(string name, ref bool __result)
__result = PCInputSystem.GetState(name) == KeyState.LetGo;
return false;
}
/* MOUSE UNUSUBLE DUE TO ICALLS

[HarmonyPatch(typeof(MoveCamera), nameof(MoveCamera.updateMobileCamera))]
[HarmonyPrefix]
public static bool CanMoveCamera()
{
return PCInputSystem.CurrentMode == PCInputSystem.Mode.None;
}
}/* MOUSE UNUSUBLE DUE TO ICALLS
[HarmonyPatch(typeof(Input), "get_touchCount")]
[HarmonyPostfix] //prevent anything using touches during mouse mode
public static void GetTouchCount(ref int __result)
Expand Down Expand Up @@ -583,16 +583,17 @@ internal static void Init()
Config = PCButtonSettings.LoadFromPath(Paths.PCInputConfigPath).FromSettings();
Instance = new GameObject("PCInputSystem").AddComponent<PCInputSystem>();
Object.DontDestroyOnLoad(Instance.gameObject);
InitGUI();
}

static void InitGUI()
{
BoxStyle = GUI.skin.box;
MainWindowFunction = ManagePCInputs;
MouseWindowFunction = ManageMouse;
MainButton = new Rect(0, 0,60, 30);
MainWindow = new Rect(0, 0, Screen.width/2.5f, Screen.height/4.5f);
MouseButton = new Rect(60, 0,85, 30);
var Size = Helper.GetButtonSize("PCInput")*1.5f;
MainButton = new Rect(0, 0,Size.x, Size.y);
MainWindow = new Rect(0, 0, 300, 350);
//MouseButton = new Rect(Size.x, 0,Screen.width/10f, Screen.height/48f);
}

public static void SaveConfig(string Path)
Expand Down Expand Up @@ -633,7 +634,10 @@ void DrawButtons()
internal static GUIStyle BoxStyle;
private void OnGUI()
{
BoxStyle ??= GUI.skin.box;
if (BoxStyle == null)
{
InitGUI();
}
DrawButtons();
if (CurrentMode == Mode.Editing)
{
Expand Down Expand Up @@ -929,10 +933,9 @@ static void ManagePCInputs(int windowid)
}
else
{
string Name = GUILayout.TextField("New Button Name");
if (GUILayout.Button("Create New Button") && pendingKey != KeyCode.None)
{
SelectedInput = CreateNewButton(Name, pendingKey, GetNextButtonRect(new Vector2(currentX, currentY)));
SelectedInput = CreateNewButton(pendingKey.ToString(), pendingKey, GetNextButtonRect(new Vector2(currentX, currentY)));
pendingKey = KeyCode.None;
}
}
Expand Down
2 changes: 1 addition & 1 deletion utils/ModInfoUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
ModDeclare mod_declare = new(mod_json_files[0]);
target_folder_name = mod_declare.UID;
}
catch (Exception e)

Check warning on line 109 in utils/ModInfoUtils.cs

View workflow job for this annotation

GitHub Actions / Windows

The variable 'e' is declared but never used
{
return "";
}
Expand Down Expand Up @@ -187,7 +187,7 @@
}

string[] workshop_mod_folders;
if (Others.is_editor)
if (Others.is_editor || Others.IsMobile)
{
goto SKIP_WORKSHOP;
}
Expand Down
Loading