[L4D2] Panel Items with ITEMDRAW_DISABLED / ITEMDRAW_NOTEXT are still functional when selected
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start by tracing the Panel selection handling for ITEMDRAW_DISABLED and ITEMDRAW_NOTEXT, comparing it with the CreateMenu behavior described in the issue. The example reproduces the bug on Left 4 Dead 2; verify whether selecting either flagged item triggers MenuAction_Select, while the regular option still works. Done means disabled and hidden Panel items no longer behave like selectable options.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Help us help you
- I have checked that my issue doesn't exist yet.
- I have tried my absolute best to reduce the problem-space and have provided the absolute smallest test-case possible.
- I can always reproduce the issue with the provided description below.
Left 4 Dead 2 on Linux server, SM 1.11.0.6968 / MM 1.11.0-dev+1155
Description
If a Panel created with CreatePanel has items with the ITEMDRAW_DISABLED or ITEMDRAW_NOTEXT draw style flags, in the past selecting these options would simply close the panel without passing the action == MenuAction_Select check in the callback (or maybe it didn't call the callback at all, I don't know). However, these options are now passing through when they shouldn't, meaning disabled and hidden menu options are incorrectly functioning equivalent to regular menu options. This does not seem to happen to Menus created with CreateMenu.
Example Code
public Action PanelTest(int client, int args)
{
Panel panel = CreatePanel();
DrawPanelItem(panel, "disabled option", ITEMDRAW_DISABLED);
DrawPanelItem(panel, "functional option");
SendPanelToClient(panel, client, PanelTestHandler, 999);
CloseHandle(panel);
return Plugin_Handled;
}
public PanelTestHandler(Menu menu, MenuAction action, int param1, int param2)
{
if(action == MenuAction_Select)
{
switch(param2)
{
case 1:
PrintToChatAll("this shouldnt be visible");
case 2:
PrintToChatAll("this should be visible");
}
}
}
- Lingua principale
- C++
- Stelle
- 1.2k
- Fork
- 476
- Merge medio
- 2g 9h
- PR unite (30g)
- 13
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di alliedmodders/sourcemod
-
[Bug]: RoundToNearest truncates in plugins compiled with spcomp 1.13Forse già presa @fmu1337 l’ha presa oggi. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
alliedmodders/sourcemod#2627 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
alliedmodders/sourcemod#2615 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
alliedmodders/sourcemod#2613 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
alliedmodders/sourcemod#2571 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Disable Nextmap for CSGO?ApertaFeature Request
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 64/100
alliedmodders/sourcemod#2555 · 3 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di alliedmodders/sourcemod
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
raspberrypi/rpi-imager#1804 ·
-
difficulty: easy docs good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Ryan-Millard/Img2Num#842 ·
I maintainer di solito rispondono entro 12 giorni
-
Unit converter reads out of bounds when the saved UnitConverterPreferences setting is malformedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
microsoft/calculator#2532 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
bug difficulty:easy prio:normal
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
NatronGitHub/openfx-misc#411 ·
I maintainer di solito rispondono entro 1 giorno