Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hover and Add actor translations #89

Closed
wants to merge 8 commits into from
Closed
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
3 changes: 3 additions & 0 deletions Fushigi/Fushigi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
<None Update="res\AreaParam.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="res\ActorData.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="res\bfres\CubemapHDR.dds">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
16 changes: 10 additions & 6 deletions Fushigi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@

if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
Console.WriteLine("Running on osx");
} else {
Console.WriteLine("Not running on osx");
Console.WriteLine("Running on osx");
}
else
{
Console.WriteLine("Not running on osx");
};

Console.WriteLine("Loading user settings...");
UserSettings.Load();
Console.WriteLine("Loading actor data...");
ActorDataDB.Load();
Console.WriteLine("Loading parameter database...");
ParamDB.Init();
Console.WriteLine("Loading area parameter loader...");
Expand All @@ -34,9 +38,9 @@
Console.WriteLine("Checking for imgui.ini");
if (!Path.Exists("imgui.ini"))
{
Console.WriteLine("Creating imgui.ini...");
File.WriteAllText("imgui.ini", File.ReadAllText(Path.Combine("res", "imgui-default.ini")));
Console.WriteLine("Created!");
Console.WriteLine("Creating imgui.ini...");
File.WriteAllText("imgui.ini", File.ReadAllText(Path.Combine("res", "imgui-default.ini")));
Console.WriteLine("Created!");
};

MainWindow window = new MainWindow();
Expand Down
6 changes: 5 additions & 1 deletion Fushigi/course/CourseActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public CourseActor(BymlHashTable actorNode)
mName = BymlUtil.GetNodeData<string>(actorNode["Name"]);
mActorPack = ActorPackCache.Load(mPackName);

friendlyName = ActorDataDB.Translate(mPackName);

if (actorNode.ContainsKey("Dynamic"))
{
Expand Down Expand Up @@ -113,6 +114,8 @@ public CourseActor(string packName, uint areaHash, string actorLayer)
mHash = RandomUtil.GetRandom();
mActorPack = ActorPackCache.Load(mPackName);

friendlyName = ActorDataDB.Translate(mPackName);

InitializeDefaultDynamicParams();
}

Expand Down Expand Up @@ -230,6 +233,7 @@ public BymlHashTable BuildNode(CourseLinkHolder linkHolder)
public ulong mHash;
public PropertyDict mActorParameters = PropertyDict.Empty;
public PropertyDict mSystemParameters = PropertyDict.Empty;
public string friendlyName;

public ActorPack mActorPack;
}
Expand Down Expand Up @@ -283,7 +287,7 @@ public BymlArrayNode SerializeToArray(CourseLinkHolder linkHolder)
public class CourseActorRender //This can be overridden per actor for individual behavior
{

public virtual void Render()
public virtual void Render()
{
}
}
Expand Down
Loading
Loading