Tools 2d
Version: | 2019.200 | Requirements: | uMMORPG3d | Script Define: | _IMMOTOOLS |
Core Changes: | Yes | Tutorial Video: | Yes |
Description
This utility AddOn is required by all other UCE AddOns, as it contains several shared functions and UI elements. Most notably are the universal “CastBarUI”, “InfoBoxUI” and a universal “PopupUI”. Those UI elements also come with options that can be edited via the Inspector. Besides that, this AddOn adds a lot of new functions to the core asset, those functions are required in order for the UCE AddOns to work as expected.
Core Changes
- [Required] Open the following script EquipmentItem.cs. See Changes...
Locate this line:public class EquipmentItem : UsableItem
Modify to match:
public partial class EquipmentItem : UsableItem
- [Required] Open the following script BonusSkill.cs. See Changes...
Locate this line:public abstract class BonusSkill : ScriptableSkill
Modify to match:
public abstract partial class BonusSkill : ScriptableSkill
- [Required] Open the following script UsableItem.cs. See Changes...
Locate this line:public abstract class UsableItem : ScriptableItem
Modify to match:
public abstract partial class UsableItem : ScriptableItem
- [Required] Open the following script DamageSkill.cs. See Changes...
Locate this line:public abstract class DamageSkill : ScriptableSkill
Modify to match:
public abstract partial class DamageSkill : ScriptableSkill
- [Required] Open the following script WeaponItem.cs. See Changes...
Locate this line:public class WeaponItem : EquipmentItem
Modify to match:
public partial class WeaponItem : EquipmentItem
- [Required] Open the following script BuffSkill.cs. See Changes...
Locate this line:public abstract class BuffSkill : BonusSkill
Modify to match:
public abstract partial class BuffSkill : BonusSkill
- [Required] Open the following script Player.cs. See Changes...
Locate this line:void OnEquipmentChanged(SyncListItemSlot.Operation op, int index) { // update the model RefreshLocation(index); }
Modify to match:
void OnEquipmentChanged(SyncListItemSlot.Operation op, int index, ItemSlot slot) { // update the model RefreshLocation(index); Utils.InvokeMany(typeof(Player), this, "OnEquipmentChanged_"); }
Installation
- [Required] Apply all required core changes.
- [Recommended] Remove the AddOn Example.cs script from your Addons folder.
- [Recommended] Import our UCE Attributes addon and follow its installation process.
- [Required]* Find your NetworkManager in your scene hierarchy examine it in the inspector. Find the Database Type and toggle it to MySQL then back to SQLite.
*Note: Even if you don’t plan to use MySql/Sqlite you need to do this process. - [Required]* Add all prefabs from the Required UI folder to your Canvas via drag-n-drop.
*Note: Don’t place them in another UI element. - [Optional] Edit the properties of UCE_UI_Popup and UCE_UI_InfoBox in the your inspector.
- [Required] Add all scripts from the Required Scripts folder to each player prefab you have, using the inspector.
- [Optional]* Edit the properties of the UCE_Popup on your player prefab.
*Note: You can have up to 255 icons and sounds. - [Optional] Add any prefab from the Optional Prefabs folder to your scene hieracrchy via drag-n-drop.
- [Optional]* Speed buffs and passive skills are now possible, make sure you set each of your players max speed.
*Note: If you don’t set a max speed these buffs and passives won’t work. It will cap it at 1.5 times.