Giter Site home page Giter Site logo

Multi-Language Support about magicallife HOT 13 OPEN

TBye101 avatar TBye101 commented on June 1, 2024
Multi-Language Support

from magicallife.

Comments (13)

a2937 avatar a2937 commented on June 1, 2024

Can you provide more details? Do you mean that you want the ability to load languages for your application? If so, what sort of external file format did you have in mind to use?

from magicallife.

TBye101 avatar TBye101 commented on June 1, 2024

Supporting multiple languages for the GUI text/other game text was the goal in mind. I'm open to suggestions for the external file format, but off the top of my head I would most likely favor .resx files or json.

from magicallife.

a2937 avatar a2937 commented on June 1, 2024

Hehe. I was going to actually suggest using resx files to be quite honest.

from magicallife.

TBye101 avatar TBye101 commented on June 1, 2024

Given that this is a .net game, resx would be very convenient.

from magicallife.

a2937 avatar a2937 commented on June 1, 2024

I was looking over the classes and noticed Item durability is not being stored in the MagicalLifeAPI.World.Base namespace under MagicalLifeAPIStandard.

/// <summary> /// /// </summary> /// <param name="name">The display name of the item.</param> /// <param name="durability">The durability of the item.</param> /// <param name="lore">Any text accompanying the item.</param> /// <param name="location">The location of this item.</param> /// <param name="stackableLimit">How many items of this kind can be in one stack.</param> /// <param name="count">How many of this item to create into a stack.</param> /// <param name="itemID">The ID of this item.</param> protected Item(string name, int durability, List<string> lore, int stackableLimit, int count, Type itemType, string textureName, double itemWeight) { this.Name = name; this.Lore = lore; this.StackableLimit = stackableLimit; this.CurrentlyStacked = count; this.ItemID = ItemRegistry.ItemTypeID.First(x => x.Value == itemType).Key;//slow this.TextureIndex = AssetManager.GetTextureIndex(textureName); this.TextureName = textureName; this.Validate(); this.TextureIndex = AssetManager.GetTextureIndex(this.TextureName); this.ItemWeight = itemWeight; }

Was this intentional? If not, should I add a durability property or remove it from the constructor?

from magicallife.

TBye101 avatar TBye101 commented on June 1, 2024

Definitely unintentional. If you'd like, please add a durability property. Durability isn't used right now, but will be someday in the future.

from magicallife.

a2937 avatar a2937 commented on June 1, 2024

On the MagicalLifeGuiWindows I have two comments regarding, the NewGameButton GetTexture method. First, it doesn't seem to be used anywhere. Secondly is it possible that it could work better as a constant?

from magicallife.

a2937 avatar a2937 commented on June 1, 2024

I'm almost ready to push what I have so far, but I wanna test it. The thing is I keep getting a crash when I try to create a new world on the MagicalLifeGUIWindows project. I've fixed the recursive log error but still seem to keep getting a chunk null exception. Perhaps you can look at the repo version I have see what the issue could be.

from magicallife.

TBye101 avatar TBye101 commented on June 1, 2024

from magicallife.

TBye101 avatar TBye101 commented on June 1, 2024

from magicallife.

a2937 avatar a2937 commented on June 1, 2024

I pulled from the main branch because I had no reason to not believe it was the most up to date version until I checked the other branches.

from magicallife.

TBye101 avatar TBye101 commented on June 1, 2024

from magicallife.

a2937 avatar a2937 commented on June 1, 2024

My apologies. It was my fault it crashes. I was not paying to ProtoUtil's number system.

from magicallife.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.