I'd like to build a title screen independent of ORK if possible, I feel like the UI elements it's using are a little limiting. Does ORK not work right if we don't use every element of the UI through the framework menu, or can we accomplish the same thing by having our own created UI elements call a particular set of scripts and etc.?
Via script, you can use this to start a new game:
ORK.Game.NewGame(true);
true will load the new game scene, false will not do that.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
EDIT: I just took a stroll through the API and am having some success. Going to read more and report back.
Thanks
E.g. when replacing the main menu, it's best to look at the main menu's code to see what you need to call to start which functionality.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
ORK.Game.Language = 0; //English
or
ORK.Game.Language = 1; //Japanese
This is the error that pops up:
NullReferenceException: Object reference not set to an instance of an object
ORKFramework.GameHandler.set_Language (Int32 value)
I set the values to reflect the order of the list but it's a no go.
I'm trying to have a look at the main menu code but I'm confused by your earlier statement as how to see it. Or did you mean to look at the source code?
@gamingislove
So I went at it all night with a magnifying glass and realized that the NullRefExc was coming up since I didn't link the ORKProjectFile in the GameStarter. All in all I used this...
public Button languageButton;
void Update()
{
if (ORK.Game.Language == 0) {
languageButton.GetComponentInChildren<Text>().text = "Language";
} else if (ORK.Game.Language == 1) {
languageButton.GetComponentInChildren<Text>().text = "言語";
}
}
as a reaction to selections made using this...
ORK.Game.Language = 0; //English
ORK.Game.Language = 1; //Japanese
and it works so far.
You can always check if ORK is initialized using the ORK.Initialized property, e.g.:
if(ORK.Initialized)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!