mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 22:45:44 +00:00
Correctif dés !
This commit is contained in:
parent
1ea384afaf
commit
78835a54a3
3 changed files with 20 additions and 3 deletions
|
|
@ -82,7 +82,10 @@
|
||||||
<Button Text="Menu" Clicked="Menu_Clicked"/>
|
<Button Text="Menu" Clicked="Menu_Clicked"/>
|
||||||
<Button Text="Générer" Clicked="Refresh_Clicked"/>
|
<Button Text="Générer" Clicked="Refresh_Clicked"/>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<urho:UrhoSurface x:Name="HelloWorldUrhoSurface" VerticalOptions="FillAndExpand" BackgroundColor="White" />
|
<StackLayout x:Name="RootSurface" VerticalOptions="FillAndExpand" BackgroundColor="White" >
|
||||||
|
|
||||||
|
</StackLayout>
|
||||||
|
<!--<urho:UrhoSurface x:Name="HelloWorldUrhoSurface" VerticalOptions="FillAndExpand" BackgroundColor="White" />-->
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</ContentPage.Content>
|
</ContentPage.Content>
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
|
|
@ -91,8 +91,13 @@ namespace AideDeJeu.Views
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var ao = new Urho.ApplicationOptions(assetsFolder: null);
|
//if (charts == null)
|
||||||
charts = await HelloWorldUrhoSurface.Show<Charts>(ao);
|
//{
|
||||||
|
var ao = new Urho.ApplicationOptions(assetsFolder: null);
|
||||||
|
var urhoSurface = new Urho.Forms.UrhoSurface() { VerticalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Xamarin.Forms.Color.White };
|
||||||
|
RootSurface.Children.Add(urhoSurface);
|
||||||
|
charts = await urhoSurface.Show<Charts>(ao);
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
catch(Exception ex)
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
|
|
@ -132,6 +137,10 @@ namespace AideDeJeu.Views
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
RootSurface.Children.Clear();
|
||||||
|
//charts?.DoStop();
|
||||||
|
////charts?.Dispose();
|
||||||
|
//charts = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Menu_Clicked(object sender, EventArgs e)
|
private void Menu_Clicked(object sender, EventArgs e)
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,11 @@ namespace AideDeJeu.Views
|
||||||
Viewport vp;
|
Viewport vp;
|
||||||
Renderer renderer;
|
Renderer renderer;
|
||||||
|
|
||||||
|
public void DoStop()
|
||||||
|
{
|
||||||
|
base.Exit(); //.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
public Bar SelectedBar { get; private set; }
|
public Bar SelectedBar { get; private set; }
|
||||||
|
|
||||||
public IEnumerable<Bar> Bars => bars;
|
public IEnumerable<Bar> Bars => bars;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue