api Posted February 19, 2022 Posted February 19, 2022 (edited) Hi Make window OnScreenMessageExWnd with 28 textboxes on screen center: Add it to a new *.uc class with the same name (OnScreenMessageExWnd) class OnScreenMessageExWnd extends UICommonAPI; const DAMAGE_MESSAGE_OFFSET = 100; const MAX_DAMAGE_MESSAGE = 28; var WindowHandle Me; var TextBoxHandle DamageText[MAX_DAMAGE_MESSAGE]; function OnLoad() { local int i; Me = GetWindowHandle("OnScreenMessageExWnd"); for (i=0; i<MAX_DAMAGE_MESSAGE; i++) { DamageText[i] = GetTextBoxHandle("OnScreenMessageExWnd.DamageText-0-" $ i); } } function OnRegisterEvent() { RegisterEvent( EV_SystemMessage ); } function OnEvent(int Event_ID, string param) { switch( Event_ID ) { case EV_SystemMessage: HandleSystemMessage(param); break; } } function HandleSystemMessage (string a_Param) { local int SystemMsgIndex, DamageToPlayer, i; ParseInt(a_Param,"Index",SystemMsgIndex); switch (SystemMsgIndex) { case 2261: //player msg case 2281: //summoner msg for(i=0; i<MAX_DAMAGE_MESSAGE; i++) { if(DamageText[i].GetText() == "") { DamageText[i].SetAlpha(255); ParseInt( a_Param, "Param3", DamageToPlayer); DamageText[i].SetText(string(DamageToPlayer)); DamageText[i].SetAnchor( "OnScreenMessageExWnd", "BottomCenter", "BottomCenter", -200 + Rand(150), Rand(60) ); DamageText[i].ClearAnchor(); DamageText[i].Move(0, -1500, 8f); DamageText[i].SetAlpha( 0, 2.8f ); Me.KillTimer(i + DAMAGE_MESSAGE_OFFSET + 1); Me.SetTimer(i + DAMAGE_MESSAGE_OFFSET + 1, 2500); break; } } break; } } function OnTimer (int TimerID) { Me.KillTimer(TimerID); if(TimerID >= 101 && TimerID <= 200) DamageText[TimerID-DAMAGE_MESSAGE_OFFSET-1].SetText(""); } Result: Enjoy Edited February 19, 2022 by api 3 2 1 Quote
MegaCheat Posted February 21, 2022 Posted February 21, 2022 can you tell us all DamageText Config Foto becuase i made it like you said but nothing. Quote
api Posted February 22, 2022 Author Posted February 22, 2022 6 hours ago, MegaCheat said: can you tell us all DamageText Config Foto becuase i made it like you said but nothing. Font: https://disk.yandex.ru/d/O36_O7gT1kELFg 1 Quote
barao45 Posted March 12, 2022 Posted March 12, 2022 (edited) Hi bro. Wat does it meens? I'm trying to Fer damage received, what param i whould use? Where can i find params data? ParseInt(a_Param,"Index", ) Edited April 15, 2022 by barao45 Quote
CrazySir Posted May 4, 2022 Posted May 4, 2022 you need OnLoad() "me" Me = GetHandle( "OnScreenMessageExWnd" ); Quote
spring Posted January 26, 2023 Posted January 26, 2023 (edited) Could you explain a little better how I install it to put it in a system interlude? Edited January 26, 2023 by spring Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.