예제 #1
0
        public BitmapSource GetIcon(
            Actor.Job job)
        {
            var jobValue = (int)job;

            if (Enum.IsDefined(typeof(JobIDs), jobValue))
            {
                var jobID = (JobIDs)Enum.ToObject(typeof(JobIDs), jobValue);
                return(this.GetIcon(jobID));
            }

            return(null);
        }
예제 #2
0
        public void ArxUpdateFfxivPlugin(double hpPercent, double mpPercent, double tpPercent, int hpCurrent,
                                         int mpCurrent,
                                         int tpCurrent, uint zone, string job, string hudmode, double targetPercent, int targetHpcurrent,
                                         int targetHpmax, string targetName, int targetEngaged, int hpMax, int mpMax, double playerposX,
                                         double playerposY, double playerposZ, Actor.ActionStatus actionstatus, double castperc, float castprogress,
                                         float casttime, bool castingtoggle, float hitboxrad, bool playerclaimed, Actor.Job playerjob, uint mapid,
                                         uint mapindex, uint mapterritory, string playername, Actor.TargetType targettype)
        {
            if (_ArxID != 100)
            {
                return;
            }

            LogitechArxWrapper.LogiArxSetTagContentById("hp_percent", hpPercent.ToString("#0%"));
            LogitechArxWrapper.LogiArxSetTagContentById("mp_percent", mpPercent.ToString("#0%"));
            LogitechArxWrapper.LogiArxSetTagContentById("tp_percent", tpPercent.ToString("#0%"));
            LogitechArxWrapper.LogiArxSetTagContentById("hp_current", hpCurrent.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("mp_current", mpCurrent.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("tp_current", tpCurrent.ToString());

            LogitechArxWrapper.LogiArxSetTagContentById("hud_type", job);
            LogitechArxWrapper.LogiArxSetTagContentById("current_location",
                                                        _ffxivMapIds.ContainsKey(zone) ? _ffxivMapIds[zone] : "");

            LogitechArxWrapper.LogiArxSetTagContentById("hud_mode", hudmode);
            LogitechArxWrapper.LogiArxSetTagContentById("target_hppercent", targetPercent.ToString("#0%"));
            LogitechArxWrapper.LogiArxSetTagContentById("target_hpcurrent", targetHpcurrent.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("target_hpmax", targetHpmax.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("target_name", targetName);
            LogitechArxWrapper.LogiArxSetTagContentById("target_engaged", targetEngaged.ToString());

            LogitechArxWrapper.LogiArxSetTagContentById("hp_max", hpMax.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("mp_max", mpMax.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("playerposX", playerposX.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("playerposY", playerposY.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("playerposZ", playerposZ.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("actionstatus", actionstatus.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("castperc", castperc.ToString("#0%"));
            LogitechArxWrapper.LogiArxSetTagContentById("castprogress", castprogress.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("casttime", casttime.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("castingtoggle", castingtoggle.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("hitboxrad", hitboxrad.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("playerclaimed", playerclaimed.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("playerjob", playerjob.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("mapid", mapid.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("mapindex", mapindex.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("mapterritory", mapterritory.ToString());
            LogitechArxWrapper.LogiArxSetTagContentById("playername", playername);
            LogitechArxWrapper.LogiArxSetTagContentById("targettype", targettype.ToString());
        }