Implement retail character management screen
This commit is contained in:
parent
5535d0adac
commit
6cfab727f1
19 changed files with 2435 additions and 6 deletions
|
|
@ -30,6 +30,29 @@ public class UiButtonTests
|
|||
Assert.Equal((17, 9), clicked);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DoubleClick_IsOptInAndDisabledButtonsSwallowWithoutInvoking()
|
||||
{
|
||||
int activations = 0;
|
||||
var button = new UiButton(
|
||||
new ElementInfo { Type = 1, Width = 46, Height = 18 },
|
||||
NoTex);
|
||||
var doubleClick = new UiEvent(
|
||||
0,
|
||||
button,
|
||||
UiEventType.DoubleClick);
|
||||
|
||||
Assert.False(button.OnEvent(doubleClick));
|
||||
|
||||
button.OnDoubleClick = () => activations++;
|
||||
Assert.True(button.OnEvent(doubleClick));
|
||||
Assert.Equal(1, activations);
|
||||
|
||||
button.Enabled = false;
|
||||
Assert.True(button.OnEvent(doubleClick));
|
||||
Assert.Equal(1, activations);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void PointerDownAndUp_InvokeDistinctTransitionHandlers()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue