Skip to content

Patch 2 #20

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

Open
wants to merge 8 commits into
base: v2-pipeline
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions OpenTibia/.collabignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ ehthumbs.db
[Bb]uild
sysinfo.txt
*.stackdump

# Streaming assets
# ================
[Aa]ssets/StreamingAssets/*
!Assets/StreamingAssets/.gitignore
!Assets/StreamingAssets/readme.md
14 changes: 0 additions & 14 deletions OpenTibia/Assets/Editor/AssetsBuilder.cs

This file was deleted.

6 changes: 3 additions & 3 deletions OpenTibia/Assets/Editor/Core/Components/DraggableEditor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEditor;
using UnityEngine;
using OpenTibiaUnity.Core.Components;
using UnityEditor;

namespace OpenTibiaUnity.Core.Components
namespace OpenTibiaUnityEditor.Core.Components
{
[CustomEditor(typeof(Draggable), true)]
[CanEditMultipleObjects]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions OpenTibia/Assets/Editor/Modules/Battle/BattleWidgetEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
using UnityEngine;
using UnityEditor;

namespace OpenTibiaUnityEditor.Modules.Battle
{
[CustomEditor(typeof(OpenTibiaUnity.Modules.Battle.BattleWidget), true)]
[CanEditMultipleObjects]
public class BattleWidgetEditor : UI.Legacy.SidebarWidgetEditor
{

SerializedProperty _filtersPanel;
SerializedProperty _showSortTypesButton;
SerializedProperty _filtersPanelToggle;
SerializedProperty _filterPlayersToggle;
SerializedProperty _filterNPCsToggle;
SerializedProperty _filterMonstersToggle;
SerializedProperty _filterNonSkulledToggle;
SerializedProperty _filterPartyToggle;
SerializedProperty _filterSummonsToggle;
SerializedProperty _battleList;

protected override void OnEnable() {
base.OnEnable();

_filtersPanel = serializedObject.FindProperty("_filtersPanel");
_showSortTypesButton = serializedObject.FindProperty("_showSortTypesButton");
_filtersPanelToggle = serializedObject.FindProperty("_filtersPanelToggle");

_filterPlayersToggle = serializedObject.FindProperty("_filterPlayersToggle");
_filterNPCsToggle = serializedObject.FindProperty("_filterNPCsToggle");
_filterMonstersToggle = serializedObject.FindProperty("_filterMonstersToggle");
_filterNonSkulledToggle = serializedObject.FindProperty("_filterNonSkulledToggle");
_filterPartyToggle = serializedObject.FindProperty("_filterPartyToggle");
_filterSummonsToggle = serializedObject.FindProperty("_filterSummonsToggle");
_battleList = serializedObject.FindProperty("_battleList");
}

bool filtersPanelActive = false;

public override void OnInspectorGUI() {
base.OnInspectorGUI();

EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
EditorGUILayout.LabelField("Battle Widget", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(_filtersPanel, new GUIContent("Filters Panel"));
EditorGUILayout.PropertyField(_showSortTypesButton, new GUIContent("ShowSortTypes Button"));
EditorGUILayout.PropertyField(_filtersPanelToggle, new GUIContent("FilterPanels Toggle"));
EditorGUILayout.PropertyField(_battleList, new GUIContent("Battle List"));

EditorGUI.indentLevel++;
filtersPanelActive = EditorGUILayout.Foldout(filtersPanelActive, "Filters Panel", true);
if (filtersPanelActive) {

EditorGUILayout.PropertyField(_filterPlayersToggle, new GUIContent("Players Toggle"));
EditorGUILayout.PropertyField(_filterNPCsToggle, new GUIContent("NPCs Toggle"));
EditorGUILayout.PropertyField(_filterMonstersToggle, new GUIContent("Monsters Toggle"));
EditorGUILayout.PropertyField(_filterNonSkulledToggle, new GUIContent("NonSkulled Toggle"));
EditorGUILayout.PropertyField(_filterPartyToggle, new GUIContent("Party Toggle"));
EditorGUILayout.PropertyField(_filterSummonsToggle, new GUIContent("Summons Toggle"));
}
EditorGUI.indentLevel--;

serializedObject.ApplyModifiedProperties();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using UnityEngine;
using UnityEditor;

namespace OpenTibiaUnityEditor.Modules.Console
{
[CustomEditor(typeof(OpenTibiaUnity.Modules.Console.ChannelSelectionWidget), true)]
[CanEditMultipleObjects]
public class ChannelSelectionWidgetEditor : UI.Legacy.PopUpBaseEditor
{

SerializedProperty _channelScrollRect;
SerializedProperty _channelInput;
SerializedProperty _channelToggleGroup;

protected override void OnEnable() {
base.OnEnable();

_channelScrollRect = serializedObject.FindProperty("_channelScrollRect");
_channelInput = serializedObject.FindProperty("_channelInput");
_channelToggleGroup = serializedObject.FindProperty("_channelToggleGroup");
}

public override void OnInspectorGUI() {
base.OnInspectorGUI();

EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
EditorGUILayout.LabelField("Channel Selection Widget", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(_channelScrollRect, new GUIContent("Channel ScrollRect"));
EditorGUILayout.PropertyField(_channelInput, new GUIContent("Channel Input"));
EditorGUILayout.PropertyField(_channelToggleGroup, new GUIContent("Channel ToggleGroup"));

serializedObject.ApplyModifiedProperties();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions OpenTibia/Assets/Editor/Modules/Console/ChannelTabEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using UnityEngine;
using UnityEditor;

namespace OpenTibiaUnityEditor.Modules.Console
{
[CustomEditor(typeof(OpenTibiaUnity.Modules.Console.ChannelTab), true)]
[CanEditMultipleObjects]
public class ChannelTabEditor : UI.Legacy.ButtonEditor
{

SerializedProperty _activeFixImage;

protected override void OnEnable() {
base.OnEnable();

_activeFixImage = serializedObject.FindProperty("_activeFixImage");
}

public override void OnInspectorGUI() {
base.OnInspectorGUI();

EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
EditorGUILayout.LabelField("Channel TabButton", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(_activeFixImage, new GUIContent("Active Fix Image"));

serializedObject.ApplyModifiedProperties();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions OpenTibia/Assets/Editor/Modules/Container.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions OpenTibia/Assets/Editor/Modules/Container/ContainerWidgetEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using UnityEditor;
using UnityEngine;

namespace OpenTibiaUnityEditor.Modules.Container
{
[CustomEditor(typeof(OpenTibiaUnity.Modules.Container.ContainerWidget), true)]
[CanEditMultipleObjects]
public class ContainerWidgetEditor : UI.Legacy.SidebarWidgetEditor
{
SerializedProperty _iconImage;
SerializedProperty _itemsScrollRect;
SerializedProperty _upButton;

protected override void OnEnable() {
base.OnEnable();

_iconImage = serializedObject.FindProperty("_iconImage");
_itemsScrollRect = serializedObject.FindProperty("_itemsScrollRect");
_upButton = serializedObject.FindProperty("_upButton");
}

public override void OnInspectorGUI() {
base.OnInspectorGUI();

EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
EditorGUILayout.LabelField("Container Widget", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(_iconImage, new GUIContent("Icon"));
EditorGUILayout.PropertyField(_itemsScrollRect, new GUIContent("Items ScrollRect"));
EditorGUILayout.PropertyField(_upButton, new GUIContent("UP Button"));

serializedObject.ApplyModifiedProperties();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions OpenTibia/Assets/Editor/Modules/HealthInfo.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using UnityEditor;
using UnityEngine;

namespace OpenTibiaUnityEditor.Modules.ToggleButtons
{
[CustomEditor(typeof(OpenTibiaUnity.Modules.HealthInfo.HealthInfoWidget), true)]
[CanEditMultipleObjects]
public class HealthInfoWidgetEditor : UI.Legacy.SidebarWidgetEditor
{
SerializedProperty _healthBar;
SerializedProperty _manaBar;

protected override void OnEnable() {
base.OnEnable();

_healthBar = serializedObject.FindProperty("_healthBar");
_manaBar = serializedObject.FindProperty("_manaBar");
}

public override void OnInspectorGUI() {
base.OnInspectorGUI();

EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
EditorGUILayout.LabelField("HealthInfo Widget", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(_healthBar, new GUIContent("Health Bar"));
EditorGUILayout.PropertyField(_manaBar, new GUIContent("Mana Bar"));

serializedObject.ApplyModifiedProperties();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions OpenTibia/Assets/Editor/Modules/Inventory.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading