Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: changed the yaml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed May 9, 2023
1 parent 6147f1a commit 3c646db
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
9 changes: 0 additions & 9 deletions FakeName/FakeName.json

This file was deleted.

19 changes: 19 additions & 0 deletions FakeName/FakeName.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

name: Fake Name
author: ArchiTed, matrix
description: |-
Show a fake name on your game ui.
punchline: Show a fake name on your game ui.
repo_url: https://github.com/ArchiDog1998/FakeName
icon_url: https://raw.githubusercontent.com/ArchiDog1998/FakeName/main/icon.png
dalamud_api_level: 8
tags:
- name
- ui
category_tags:
- ui
image_urls:
download_count: 1024
download_link_install: https://github.com/ArchiDog1998/FakeName/releases/latest/download/latest.zip
download_link_update: https://github.com/ArchiDog1998/FakeName/releases/latest/download/latest.zip
download_link_testing: https://github.com/ArchiDog1998/FakeName/releases/latest/download/latest.zip
1 change: 1 addition & 0 deletions FakeName/Hooker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public unsafe void Dispose()

private void Framework_Update(Dalamud.Game.Framework framework)
{
if (!Service.Condition.Any()) return;
var player = Service.ClientState.LocalPlayer;
if (player == null) return;

Expand Down
4 changes: 4 additions & 0 deletions FakeName/Service.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Dalamud.Game;
using Dalamud.Game.ClientState;
using Dalamud.Game.ClientState.Conditions;
using Dalamud.Game.ClientState.Objects;
using Dalamud.Game.Command;
using Dalamud.IoC;
Expand All @@ -24,4 +25,7 @@ internal class Service
internal static ObjectTable ObjectTable { get; private set; }
[PluginService]
public static Framework Framework { get; private set; }

[PluginService]
public static Condition Condition { get; private set; }
}

0 comments on commit 3c646db

Please sign in to comment.