Interface Reordering OXP

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 291
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Interface Reordering OXP

Post by Krager »

При использовании этого дополнения, по другому себя ведёт `OoCheat`.
В обычном варианте в дополнении `OoCheat` при добавлении денег, они добавляются и ты тут же можешь добавить ещё.
Если же установить `Interface Reordering` при добавлении денег, денги добавляются, но автоматом происходит выход из `OoCheat`. И чтоб снова что то изменить, надо снова входить в `OoCheat`.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2944
Joined: Sat Jun 11, 2011 6:07 am
Location: Nova Hollandia
Contact:

Re: Interface Reordering OXP

Post by Wildeblood »

What Google translate says Krager said:
OoCheat behaves differently when using this add-on.
In the standard OoCheat add-on, when you add money, it's added, and you can immediately add more.
However, if you install Interface Reordering, when you add money, the money is added, but OoCheat automatically exits. To change anything again, you have to re-enter OoCheat.
Here's the relevant code from ooCheat, it's nothing fanciful. So this unfortunate side-effect could be happening on lots of mission screens?

Code: Select all

this.displayMenu = function()
	{
	mission.runScreen({title:"Cheat Menu", choicesKey:"ooCheat_choices"}, this.choice);
	...	
	}

this.choice = function(choice)
	{
	switch(choice)
		{	
		case "OOCHEAT_1_CREDITS":
			{
			player.credits += 1000;
			this.displayMenu();
			break;
			}

		case "OOCHEAT_2_RANK":
			{
			this.increaseRank();
			this.displayMenu();
			break;
			}
			...
		}
	}
R.I.P. John Lodge, 1943-2025.
Post Reply