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; public const int EngrenageV1 = 2131165285;
// aapt resource value: 0x7F070066 // aapt resource value: 0x7F070066
public const int ic_mtrl_chip_checked_black = 2131165286; public const int HomeIcon = 2131165286;
// aapt resource value: 0x7F070067 // 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 // 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 // aapt resource value: 0x7F070069
public const int imagesRules = 2131165289; public const int ic_mtrl_chip_close_circle = 2131165289;
// aapt resource value: 0x7F07006A // aapt resource value: 0x7F07006A
public const int mtrl_snackbar_background = 2131165290; public const int imagesRules = 2131165290;
// aapt resource value: 0x7F07006B // aapt resource value: 0x7F07006B
public const int mtrl_tabs_default_indicator = 2131165291; public const int mtrl_snackbar_background = 2131165291;
// aapt resource value: 0x7F07006C // aapt resource value: 0x7F07006C
public const int navigation_empty_icon = 2131165292; public const int mtrl_tabs_default_indicator = 2131165292;
// aapt resource value: 0x7F07006D // aapt resource value: 0x7F07006D
public const int notification_action_background = 2131165293; public const int navigation_empty_icon = 2131165293;
// aapt resource value: 0x7F07006E // aapt resource value: 0x7F07006E
public const int notification_bg = 2131165294; public const int notification_action_background = 2131165294;
// aapt resource value: 0x7F07006F // aapt resource value: 0x7F07006F
public const int notification_bg_low = 2131165295; public const int notification_bg = 2131165295;
// aapt resource value: 0x7F070070 // aapt resource value: 0x7F070070
public const int notification_bg_low_normal = 2131165296; public const int notification_bg_low = 2131165296;
// aapt resource value: 0x7F070071 // aapt resource value: 0x7F070071
public const int notification_bg_low_pressed = 2131165297; public const int notification_bg_low_normal = 2131165297;
// aapt resource value: 0x7F070072 // aapt resource value: 0x7F070072
public const int notification_bg_normal = 2131165298; public const int notification_bg_low_pressed = 2131165298;
// aapt resource value: 0x7F070073 // aapt resource value: 0x7F070073
public const int notification_bg_normal_pressed = 2131165299; public const int notification_bg_normal = 2131165299;
// aapt resource value: 0x7F070074 // aapt resource value: 0x7F070074
public const int notification_icon_background = 2131165300; public const int notification_bg_normal_pressed = 2131165300;
// aapt resource value: 0x7F070075 // aapt resource value: 0x7F070075
public const int notification_template_icon_bg = 2131165301; public const int notification_icon_background = 2131165301;
// aapt resource value: 0x7F070076 // 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 // aapt resource value: 0x7F070077
public const int notification_tile_bg = 2131165303; public const int notification_template_icon_low_bg = 2131165303;
// aapt resource value: 0x7F070078 // aapt resource value: 0x7F070078
public const int notify_panel_notification_icon_bg = 2131165304; public const int notification_tile_bg = 2131165304;
// aapt resource value: 0x7F070079 // aapt resource value: 0x7F070079
public const int rules = 2131165305; public const int notify_panel_notification_icon_bg = 2131165305;
// aapt resource value: 0x7F07007A // aapt resource value: 0x7F07007A
public const int rulesImg = 2131165306; public const int rules = 2131165306;
// aapt resource value: 0x7F07007B // aapt resource value: 0x7F07007B
public const int tooltip_frame_dark = 2131165307; public const int rulesImg = 2131165307;
// aapt resource value: 0x7F07007C // aapt resource value: 0x7F07007C
public const int tooltip_frame_light = 2131165308; public const int tooltip_frame_dark = 2131165308;
// aapt resource value: 0x7F07007D // 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() static Drawable()
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

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

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

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

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

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

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

Loading…
Cancel
Save