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

Feature/minimap implementation #98

Open
wants to merge 6 commits into
base: develop
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
181 changes: 120 additions & 61 deletions UnityClient/Assets/Resources/Prefabs/UI/Map UI.prefab

Large diffs are not rendered by default.

1,026 changes: 979 additions & 47 deletions UnityClient/Assets/Resources/Prefabs/UI/Windows/Minimap.prefab

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions UnityClient/Assets/Resources/Prefabs/UI/Windows/NpcBox.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 175, y: -15}
m_SizeDelta: {x: 350, y: 30}
m_AnchoredPosition: {x: 169, y: -23}
m_SizeDelta: {x: 322, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2308426755591862037
CanvasRenderer:
Expand Down Expand Up @@ -366,11 +366,11 @@ PrefabInstance:
m_Modifications:
- target: {fileID: 7131267588176943532, guid: b45d9b48ba3242e4b82fe58cd4dc1dd1, type: 3}
propertyPath: m_Size
value: 0.9226513
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7131267589075313545, guid: b45d9b48ba3242e4b82fe58cd4dc1dd1, type: 3}
propertyPath: m_SizeDelta.y
value: 30
value: 46
objectReference: {fileID: 0}
- target: {fileID: 7131267589075313545, guid: b45d9b48ba3242e4b82fe58cd4dc1dd1, type: 3}
propertyPath: m_AnchoredPosition.y
Expand Down
2 changes: 1 addition & 1 deletion UnityClient/Assets/Scenes/Login/LoginController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void Start() {

NetworkClient = FindObjectOfType<NetworkClient>();

NetworkClient.ChangeServer("127.0.0.1", 6900);
NetworkClient.ChangeServer("192.168.0.3", 6900);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this

NetworkClient.HookPacket(AC.ACCEPT_LOGIN3.HEADER, this.OnLoginResponse);
usernameField.text = "danilo3";
}
Expand Down
2 changes: 2 additions & 0 deletions UnityClient/Assets/Scenes/Map/MapController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class MapController : MonoBehaviour {
[SerializeField] private Light worldLight;

public MapUiController UIController;
public GameEventUI MiniMapController;

private NetworkClient NetworkClient;
private GameManager GameManager;
Expand All @@ -23,6 +24,7 @@ private async void Awake() {
}

UIController = FindObjectOfType<MapUiController>();
MiniMapController = FindObjectOfType<GameEventUI>();
NetworkClient = FindObjectOfType<NetworkClient>();
GameManager = FindObjectOfType<GameManager>();
EntityManager = FindObjectOfType<EntityManager>();
Expand Down
54 changes: 0 additions & 54 deletions UnityClient/Assets/Scripts/Components/UI/Minimap.cs

This file was deleted.

8 changes: 8 additions & 0 deletions UnityClient/Assets/Scripts/Components/UI/Minimap.meta

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

Loading