diff --git a/bob_party/src/components/Element.tsx b/bob_party/src/components/Element.tsx index cd70f93..1b0f2b4 100644 --- a/bob_party/src/components/Element.tsx +++ b/bob_party/src/components/Element.tsx @@ -3,6 +3,7 @@ import { Pressable, Image, ImageStyle, Text, View, Alert, ImageSourcePropType, T import React from "react" import { Skin } from "../core/skin" import { trace } from "console" +import { Game } from "../core/Game" export const ElementAffichage : FC<{element: any, styleImage: ImageStyle, styleTitle : TextStyle,nav: any}> = @@ -31,6 +32,7 @@ FC<{element: any, styleImage: ImageStyle, styleTitle : TextStyle,nav: any}> = style={styleImage} source={element.getImageSource()} /> + {element.getName()} ) diff --git a/bob_party/src/screens/GameChoice.tsx b/bob_party/src/screens/GameChoice.tsx index 67088be..cafcd37 100644 --- a/bob_party/src/screens/GameChoice.tsx +++ b/bob_party/src/screens/GameChoice.tsx @@ -1,16 +1,18 @@ import { StatusBar } from 'expo-status-bar' import { StyleSheet, View, Text, Alert, Pressable, Image} from 'react-native' import React from 'react'; +import { Game } from '../core/Game'; import { Skin } from '../core/skin'; import { TopBar } from '../components/TopBar'; import { BotBar } from '../components/BotBar'; import { ElementAffichage } from '../components/Element'; import { GoBackBar } from '../components/GoBackBar'; + const msc = require('../../assets/Icons/FondGris.png'); const avatar = require('../../assets/Icons/BobClassic.png'); const skinTest= new Skin("Bob",require('../../assets/Icons/BobClassic.png')); -const jeuTest= new Game("SNAKE", require('../../assets/Icons/UnSelected/Gamepad.png',"dublablapourlinstant")) +const jeuTest= new Game("SNAKE", require('../../assets/Icons/UnSelected/Gamepad.png'),"ouin"); const cross = require('../../assets/Icons/UnSelected/Cross.png'); const gamepad = require('../../assets/Icons/Selected/SGamepad.png'); const message = require('../../assets/Icons/UnSelected/Chat.png'); @@ -30,7 +32,7 @@ function GameChoice(props: { navigation: any; }) { />