PAge jeu pret pour prépare le drag and drop

master
Baptiste ARNAUD 6 years ago
parent 989bc2d8d7
commit 93ee8761ee

@ -5746,76 +5746,79 @@ namespace TheGameExtreme.Droid
public const int EngrenageV1 = 2131165285;
// aapt resource value: 0x7F070066
public const int ic_mtrl_chip_checked_black = 2131165286;
public const int HomeIcon = 2131165286;
// aapt resource value: 0x7F070067
public const int ic_mtrl_chip_checked_circle = 2131165287;
public const int ic_mtrl_chip_checked_black = 2131165287;
// aapt resource value: 0x7F070068
public const int ic_mtrl_chip_close_circle = 2131165288;
public const int ic_mtrl_chip_checked_circle = 2131165288;
// aapt resource value: 0x7F070069
public const int imagesRules = 2131165289;
public const int ic_mtrl_chip_close_circle = 2131165289;
// aapt resource value: 0x7F07006A
public const int mtrl_snackbar_background = 2131165290;
public const int imagesRules = 2131165290;
// aapt resource value: 0x7F07006B
public const int mtrl_tabs_default_indicator = 2131165291;
public const int mtrl_snackbar_background = 2131165291;
// aapt resource value: 0x7F07006C
public const int navigation_empty_icon = 2131165292;
public const int mtrl_tabs_default_indicator = 2131165292;
// aapt resource value: 0x7F07006D
public const int notification_action_background = 2131165293;
public const int navigation_empty_icon = 2131165293;
// aapt resource value: 0x7F07006E
public const int notification_bg = 2131165294;
public const int notification_action_background = 2131165294;
// aapt resource value: 0x7F07006F
public const int notification_bg_low = 2131165295;
public const int notification_bg = 2131165295;
// aapt resource value: 0x7F070070
public const int notification_bg_low_normal = 2131165296;
public const int notification_bg_low = 2131165296;
// aapt resource value: 0x7F070071
public const int notification_bg_low_pressed = 2131165297;
public const int notification_bg_low_normal = 2131165297;
// aapt resource value: 0x7F070072
public const int notification_bg_normal = 2131165298;
public const int notification_bg_low_pressed = 2131165298;
// aapt resource value: 0x7F070073
public const int notification_bg_normal_pressed = 2131165299;
public const int notification_bg_normal = 2131165299;
// aapt resource value: 0x7F070074
public const int notification_icon_background = 2131165300;
public const int notification_bg_normal_pressed = 2131165300;
// aapt resource value: 0x7F070075
public const int notification_template_icon_bg = 2131165301;
public const int notification_icon_background = 2131165301;
// aapt resource value: 0x7F070076
public const int notification_template_icon_low_bg = 2131165302;
public const int notification_template_icon_bg = 2131165302;
// aapt resource value: 0x7F070077
public const int notification_tile_bg = 2131165303;
public const int notification_template_icon_low_bg = 2131165303;
// aapt resource value: 0x7F070078
public const int notify_panel_notification_icon_bg = 2131165304;
public const int notification_tile_bg = 2131165304;
// aapt resource value: 0x7F070079
public const int rules = 2131165305;
public const int notify_panel_notification_icon_bg = 2131165305;
// aapt resource value: 0x7F07007A
public const int rulesImg = 2131165306;
public const int rules = 2131165306;
// aapt resource value: 0x7F07007B
public const int tooltip_frame_dark = 2131165307;
public const int rulesImg = 2131165307;
// aapt resource value: 0x7F07007C
public const int tooltip_frame_light = 2131165308;
public const int tooltip_frame_dark = 2131165308;
// aapt resource value: 0x7F07007D
public const int UsersExiticon = 2131165309;
public const int tooltip_frame_light = 2131165309;
// aapt resource value: 0x7F07007E
public const int UsersExiticon = 2131165310;
static Drawable()
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -125,5 +125,8 @@
<ItemGroup>
<AndroidResource Include="Resources\drawable\UsersExiticon.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\HomeIcon.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -156,5 +156,6 @@
<Content Include="Apple.ico" />
<BundleResource Include="Resources\ArrowSettingsBack.png" />
<BundleResource Include="Resources\UsersExiticon.png" />
<BundleResource Include="Resources\HomeIcon.png" />
</ItemGroup>
</Project>

@ -32,7 +32,7 @@
HeightRequest="60"
WidthRequest="68"
Clicked="OpenSetting"
BackgroundColor="Transparent"/>
BackgroundColor="{DynamicResource BlackColor}"/>
<Button Text="Jeu en local" FontSize="18" Grid.Row="1" Grid.Column="1"
HorizontalOptions="Center"
@ -71,7 +71,8 @@
VerticalOptions="CenterAndExpand"
HorizontalOptions="Start"
Margin="20"
Clicked="Rules_Clicked"/>
Clicked="Rules_Clicked"
BackgroundColor="{DynamicResource BlackColor}"/>
</Grid>
</StackLayout>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ContentPage BackgroundColor="{DynamicResource WhiteColor}"
<ContentPage BackgroundColor="{DynamicResource BlackColor}"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
@ -13,36 +13,37 @@
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<StackLayout>
<Label x:Name="pseudo"
Text="Pseudo"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
VerticalTextAlignment="Start"
TextColor="{DynamicResource WhiteColor}"
Margin="20"
FontSize="28"
Grid.Row="0"/>
Margin="30"
FontSize="28" Grid.Row="0"
/>
<ImageButton Source="UsersExiticon.png"
HorizontalOptions="End"
<ImageButton Source="HomeIcon.png"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="60"
HeightRequest="60"
Margin="0,0,20,0"
Grid.Row="0"/>
<StackLayout
WidthRequest="45"
Margin="20,20,0,0"
HeightRequest="45"
BackgroundColor="{DynamicResource BlackColor}"
Grid.Row="0"
Clicked="PlayToHome"/>
<Button Text="End Turn" HorizontalOptions="End"
VerticalOptions="Start" BackgroundColor="{DynamicResource SkyBlueColor}"
HeightRequest="35" Margin="0,30,20,0" Grid.Row="0"/>
<!--<StackLayout>
<StackLayout
Orientation="Vertical">
<Label HorizontalTextAlignment="Center" x:Name="pile0" Text="1" />
<StackLayout
@ -100,13 +101,10 @@
x:Name="botPanel"
Orientation="Vertical"
Margin="20">
<Button Text="End Turn" Clicked="endTurn" />
<Label x:Name="Alert" />
<Label x:Name="Alert"/>
</StackLayout>
</StackLayout>
</StackLayout>-->
</Grid>
</ContentPage>

@ -23,7 +23,7 @@ namespace TheGameExtreme.view
InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
stacks.Add(checkbox0);
/*stacks.Add(checkbox0);
stacks.Add(checkbox1);
stacks.Add(checkbox2);
stacks.Add(checkbox3);
@ -39,7 +39,7 @@ namespace TheGameExtreme.view
Alert.SetBinding(Label.TextProperty, new Binding("Alert", source: viewmodel));
pseudo.SetBinding(Label.TextProperty, new Binding("Pseudo", source: viewmodel));
inflateHand();
inflateHand();*/
}
//private void OnPlayerChanged(object sender, PlayerChangedEventArgs args)
@ -47,7 +47,7 @@ namespace TheGameExtreme.view
// inflateHand();
//}
private void inflateHand()
/*private void inflateHand()
{
Hand.Children.Clear();
for (int i = 0; i < viewmodel.CurrentHand.Count; i++)
@ -162,9 +162,14 @@ namespace TheGameExtreme.view
{
inflateHand();
}
}
}*/
/*private async void Back(object sender, EventArgs args)
{
await Navigation.PopToRootAsync();
}*/
private async void Back(object sender, EventArgs args)
private async void PlayToHome(object sender, EventArgs args)
{
await Navigation.PopToRootAsync();
}

@ -26,7 +26,7 @@
HeightRequest="40"
WidthRequest="50"
Clicked="SettingToHomePage"
BackgroundColor="Transparent"
BackgroundColor="{DynamicResource BlackColor}"
Margin="10,10,0,0"/>
<Label HorizontalTextAlignment="Start"
@ -46,7 +46,7 @@
Grid.Column="1" Grid.Row="0"
x:Name="CBBr"
CheckedChanged="CBBr_CheckedChanged"
Color="SkyBlue"
Color="{DynamicResource SkyBlueColor}"
Margin="40,63,0,0"/>
<Label Text="Français"
@ -59,7 +59,7 @@
Grid.Column="2" Grid.Row="0"
x:Name="CBFr"
CheckedChanged="CBFr_CheckedChanged"
Color="SkyBlue"
Color="{DynamicResource SkyBlueColor}"
Margin="40,63,0,0"/>
@ -71,7 +71,7 @@
<Switch
Grid.Column="1" Grid.Row="2"
OnColor="SkyBlue"
OnColor="{DynamicResource SkyBlueColor}"
ThumbColor="WhiteSmoke"/>
<Label Text="Thème Clair"
@ -82,8 +82,8 @@
<Switch
Grid.Column="1" Grid.Row="3"
Toggled="Switch_Toggled_Theme" x:Name="swTheme"
OnColor="SkyBlue" ThumbColor="WhiteSmoke"/>
Toggled="Switch_Toggled_Theme" x:Name="swTheme"
OnColor="{DynamicResource SkyBlueColor}" ThumbColor="WhiteSmoke"/>
</Grid>
</ContentPage>

@ -52,6 +52,7 @@ namespace TheGameExtreme.view
Application.Current.Resources["WhiteColor"] = Color.White;
Application.Current.Resources["SkyBlueColor"] = Color.SkyBlue;
}
else
{

Loading…
Cancel
Save