void CharacterFilter_Login(object sender, Decal.Adapter.Wrappers.LoginEventArgs e) { try { var commands = Settings.SettingsManager.AccountServerCharacter.GetOnLoginCommands(CoreManager.Current.CharacterFilter.AccountName, CoreManager.Current.CharacterFilter.Server, CoreManager.Current.CharacterFilter.Name); if (commands.Count == 0) { return; } if (pendingCommands.Count == 0) { CoreManager.Current.RenderFrame += new EventHandler <EventArgs>(Current_RenderFrame); } // This queues up a dummy command so our actions happen one frame after all the other plugins have finished Login pendingCommands.Enqueue(null); foreach (var action in commands) { pendingCommands.Enqueue(action); } } catch (Exception ex) { Debug.LogException(ex); } }
void CharacterFilter_Login(object sender, Decal.Adapter.Wrappers.LoginEventArgs e) { try { if (!Settings.SettingsManager.Misc.RemoveWindowFrame.Value) { return; } RemoveWindowFrame(); } catch (Exception ex) { Debug.LogException(ex); } }
void CharacterFilter_Login(object sender, Decal.Adapter.Wrappers.LoginEventArgs e) { try { WindowPosition windowPosition; if (GetWindowPositionForThisClient(out windowPosition)) { User32.RECT rect = new User32.RECT(); User32.GetWindowRect(CoreManager.Current.Decal.Hwnd, ref rect); User32.MoveWindow(CoreManager.Current.Decal.Hwnd, windowPosition.X, windowPosition.Y, rect.Right - rect.Left, rect.Bottom - rect.Top, true); } } catch (Exception ex) { Debug.LogException(ex); } }
void CharacterFilter_Login(object sender, Decal.Adapter.Wrappers.LoginEventArgs e) { try { var loginCommands = Settings.SettingsManager.Server.GetOnLoginCommands(CoreManager.Current.CharacterFilter.Server); foreach (var command in loginCommands) { HudList.HudListRowAccessor newRow = loginList.AddRow(); ((HudStaticText)newRow[0]).Text = command; ((HudPictureBox)newRow[1]).Image = 0x60028FC; ((HudPictureBox)newRow[2]).Image = 0x60028FD; ((HudPictureBox)newRow[3]).Image = 0x60011F8; } var loginCompleteCommands = Settings.SettingsManager.Server.GetOnLoginCompleteCommands(CoreManager.Current.CharacterFilter.Server); foreach (var command in loginCompleteCommands) { HudList.HudListRowAccessor newRow = loginCompleteList.AddRow(); ((HudStaticText)newRow[0]).Text = command; ((HudPictureBox)newRow[1]).Image = 0x60028FC; ((HudPictureBox)newRow[2]).Image = 0x60028FD; ((HudPictureBox)newRow[3]).Image = 0x60011F8; } var periodicCommands = Settings.SettingsManager.Server.GetPeriodicCommands(CoreManager.Current.CharacterFilter.Server); foreach (var command in periodicCommands) { HudList.HudListRowAccessor newRow = periodicCommandList.AddRow(); ((HudStaticText)newRow[0]).Text = command.Command; ((HudStaticText)newRow[1]).Text = command.Interval.TotalMinutes.ToString(CultureInfo.InvariantCulture); ((HudStaticText)newRow[2]).Text = command.OffsetFromMidnight.TotalMinutes.ToString(CultureInfo.InvariantCulture); ((HudPictureBox)newRow[3]).Image = 0x60011F8; } } catch (Exception ex) { Debug.LogException(ex); } }