安裝 Steam
登入
|
語言
簡體中文
日本語(日文)
한국어(韓文)
ไทย(泰文)
Български(保加利亞文)
Čeština(捷克文)
Dansk(丹麥文)
Deutsch(德文)
English(英文)
Español - España(西班牙文 - 西班牙)
Español - Latinoamérica(西班牙文 - 拉丁美洲)
Ελληνικά(希臘文)
Français(法文)
Italiano(義大利文)
Bahasa Indonesia(印尼語)
Magyar(匈牙利文)
Nederlands(荷蘭文)
Norsk(挪威文)
Polski(波蘭文)
Português(葡萄牙文 - 葡萄牙)
Português - Brasil(葡萄牙文 - 巴西)
Română(羅馬尼亞文)
Русский(俄文)
Suomi(芬蘭文)
Svenska(瑞典文)
Türkçe(土耳其文)
tiếng Việt(越南文)
Українська(烏克蘭文)
回報翻譯問題
I've never used the DHTML element myself.
I took a quick look and security might be a problem. As I understand it the website gets loaded by the client that creates the DHTML element.
Therefore it allows the e2-creator to open any URL on any other player, which is something I'm not willing to implement.
That said. It might be possible to allow only the e2-owner to use DHTML elements but block it on other players or add additional features to the buddy system to explicitly allow the usage of DHTML elements.
Aside from that, there seems to be a feature that allows Javascript to execute Lua code which also might present security problems (I took note that you can disable this specific funtionality though)
I will have to look into it a bit more.
Do you have any specific use cases in mind for DHTML which would help me understand what features you need?
For some reason VGUI core just stopped working entirely. None of the functions or anything show up in expression 2, and it makes errors whenever I try to spawn any of my dupes using VGUI core. The spawnmenu extensions still exist, like the buddies and blacklist menu, but the core is just non-existent in the editor.
That "duplicate column" error is something I can't really fix. It happens when you try to create columns which use the same index (e.g. add 2 columns without index and then add another one with index 1)
See: https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/vgui/dlistview.lua#L71
I'm unsure what causes the second error, can you provide a simple code example to reproduce this (in a new issue on github) ?
[[E2] Vgui Core] Attempted to insert duplicate column.
1. AddColumn - lua/vgui/dlistview.lua:71
2. unknown - lua/autorun/client/cl_vgui_lib.lua:75
3. applyAttributes - lua/autorun/client/cl_vgui_lib.lua:170
4. createFunc - vgui_elements/client/dlistview.lua:8
5. func - lua/autorun/client/cl_e2_vgui_netmessage.lua:33
6. unknown - lua/includes/extensions/net.lua:33
[[E2] Vgui Core] lua/autorun/client/cl_vgui_lib.lua:79: attempt to index local 'column' (a nil value)
1. unknown - lua/autorun/client/cl_vgui_lib.lua:79
2. applyAttributes - lua/autorun/client/cl_vgui_lib.lua:170
3. createFunc - vgui_elements/client/dlistview.lua:8
4. func - lua/autorun/client/cl_e2_vgui_netmessage.lua:33
5. unknown - lua/includes/extensions/net.lua:33
It also has some edge cases where panels created by an E2 can be stuck on-screen forever even when the E2 is deleted. There needs to be a console command to clear all E2 VGUIs
I will add more example in the future but if you need help with anything specific just post a comment here or ask me on the Official Wiremod Discord @Linus