Hello everyone, people often ask me how to help me.
Here I will describe the general principle of how to create a simple window for ui (unity l2)
Here I am looking at an already created ActionWindows window
1. Assets\Resources\Data\UI\_Elements\Game
2.
Let's call it ActionWindows
3. Let's go to the newly created window
4.as you can see it is empty. But we already have a ready-made window template so that we don’t have to assemble it again every time. We will connect a ready-made design for a new window
5. open the window code
6.
7. Add new code
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xmlns="UnityEngine.UIElements" editor-extension-mode="False">
<ui:Template name="DefaultWindowsAction" src="project://database/Assets/Resources/Data/UI/_Elements/Template/DefaultWindowsAction.uxml?fileID=9197481963319205126&guid=2fdd4636702f00a4e98644cfa7468b14&type=3#DefaultWindowsAction" />
<ui:Instance name="defaultWindowsAction" template="DefaultWindowsAction" style="width: 317px; height: 575px; position: absolute;">
<AttributeOverrides element-name="windows-name-label" text="Actions" />
<ui:VisualElement name="Background" class="background_over" style="flex-grow: 1; min-width: auto; min-height: auto; justify-content: flex-start; align-items: flex-start; position: absolute; background-image: resource('Data/UI/Window/Frame_DF_Large_Bg_Darker_Center_Alpha'); height: 91%; top: 38px; width: 95%; left: 8px; display: flex; visibility: visible; overflow: visible; opacity: 1;" />
<ui:GroupBox name="BoxHeader" class="drag-area" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-bottom: 0; padding-left: 0; position: absolute; top: 15px; align-self: stretch; height: 4%; width: 88%;" />
</ui:Instance>
</ui:UXML>
8.We take a template
project://database/Assets/Resources/Data/UI/_Elements/Template/DefaultWindowsAction.uxml
9. This piece of code can be taken from other windows so as not to write every time
10. Save
11.Drag the GroupBox node
12.
Changing its position settings
I can change all the settings from the editor. But if you knew, then a very similar technology to CSS is better
if you open the window code you can notice everything is the same as in css
you can create settings in the window code or use a file with all the styles
Assets\Resources\Data\UI\_Elements\L2StyleSheet.uss
In the next issue we will write code to connect it to the game logic. Unless of course you delete the article.
Question
jossoo
Tue, 2011-03-29 22:29:37 - UDP Packet - Source:109.242.141.101,1900 Destination:239.255.255.250,1900 - [DOS]
Tue, 2011-03-29 22:29:39 - UDP Packet - Source:94.64.251.85,53911 Destination:109.242.141.101,25932 - [DOS]
Tue, 2011-03-29 22:50:25 - UDP Packet - Source:94.64.251.85,53911 Destination:109.242.141.101,25932 - [DOS]
ue, 2011-03-29 23:59:38 - UDP Packet - Source:109.242.141.101,1900 Destination:239.255.255.250,1900 - [DOS]
Wed, 2011-03-30 00:43:29 - UDP Packet - Source:79.107.230.93,9320 Destination:109.242.141.101,25932 - [DOS]
Wed, 2011-03-30 00:45:47 - UDP Packet - Source:109.242.141.101,1900 Destination:239.255.255.250,1900 - [DOS]
Wed, 2011-03-30 01:48:07 - UDP Packet - Source:72.92.214.207,13906 Destination:109.242.141.101,22731 - [DOS]
Wed, 2011-03-30 01:50:24 - UDP Packet - Source:109.242.141.101,1900 Destination:239.255.255.250,1900 - [DOS]
Wed, 2011-03-30 01:50:24 - UDP Packet - Source:85.74.203.146,25619 Destination:109.242.141.101,22731 - [DOS]
Wed, 2011-03-30 03:15:48 - UDP Packet - Source:116.94.220.193,8339 Destination:109.242.141.101,22731 - [DOS]
Wed, 2011-03-30 03:15:48 - UDP Packet - Source:183.179.60.156,19127 Destination:109.242.141.101,22731 - [DOS]
Wed, 2011-03-30 03:25:02 - UDP Packet - Source:82.114.214.38,25638 Destination:109.242.141.101,22731 - [DOS]
Wed, 2011-03-30 03:27:19 - UDP Packet - Source:109.242.141.101,1900 Destination:239.255.255.250,1900 - [DOS]
Wed, 2011-03-30 11:34:16 - UDP Packet - Source:150.140.233.107,13109 Destination:109.242.141.101,25932 - [DOS]
Wed, 2011-03-30 13:25:04 - UDP Packet - Source:92.244.245.48,59734 Destination:109.242.141.101,54028 - [DOS]
how i can block this attacks ?this are from my modems logfile (netgear DGN 2000)
also i have close all ports from everything and still get those attacks...
can some1 explain me ?
13 answers to this question
Recommended Posts