Remplacement monnaie réelle par bobcoins
continuous-integration/drone/push Build was killed Details

peristanceBDD
Alban GUILHOT 2 years ago
parent 4684f45b59
commit 22dbb5a076

@ -58,7 +58,7 @@ export default function BlackJack(props){
<View style={styles.center}> <View style={styles.center}>
<FloatingText <FloatingText
text={`Total Bet $ ${totalBet}`} text={`Total Bet ${totalBet} BobCoins`}
/> />
</View> </View>
<ChipSelector <ChipSelector
@ -80,7 +80,7 @@ export default function BlackJack(props){
/> />
<View style={styles.center}> <View style={styles.center}>
<FloatingText <FloatingText
text={`Available $ ${amount}`} text={`Available ${amount} BobCoins`}
/> />
</View> </View>
@ -178,7 +178,7 @@ export default function BlackJack(props){
setTotalBet(0); setTotalBet(0);
setGameover(true); setGameover(true);
setGameMessage("You Win $ "+ betValue); setGameMessage("You Win "+ betValue+" BobCoins");
} }
else if(playerPoints > 21 && dealerPoints <= 21){ else if(playerPoints > 21 && dealerPoints <= 21){

@ -15,7 +15,7 @@ import { useSkinStore } from "../context/storeContext"
import { MANAGER_SKIN, MANAGER_USER } from "../../appManagers" import { MANAGER_SKIN, MANAGER_USER } from "../../appManagers"
const coinImage = require('../../assets/Icons/Coin.png')
export const SkinComponent: export const SkinComponent:
@ -105,7 +105,13 @@ export const SkinComponent:
style={styles.imageSkin} style={styles.imageSkin}
source={{ uri: skin.getSkinSource() }} source={{ uri: skin.getSkinSource() }}
/> />
<Text style={styles.nomSkin}>100</Text> <View style={styles.shopNameView}>
<Text style={styles.nomSkin}>{skin.getSkinCost()}</Text>
<Image
style={styles.coinStyle}
source={coinImage}
/>
</View>
</Pressable> </Pressable>
) )
case 'liste': case 'liste':

@ -33,4 +33,13 @@ export default StyleSheet.create({
fontWeight: 'bold', fontWeight: 'bold',
color: 'white', color: 'white',
}, },
coinStyle:{
height: 25,
width: 25,
},
shopNameView:{
alignSelf: 'center',
flexDirection:'row',
alignItems: 'center'
}
}); });

@ -30,5 +30,6 @@ export default StyleSheet.create({
backgroundColor: 'white', backgroundColor: 'white',
padding: 10, padding: 10,
marginVertical: 10, marginVertical: 10,
borderRadius: 15
} }
}); });

@ -8,9 +8,10 @@ export default StyleSheet.create({
backgroundColor: 'white', backgroundColor: 'white',
marginTop: 10, marginTop: 10,
paddingLeft: 15, paddingLeft: 15,
borderRadius: 15
}, },
textInputPassword: { textInputPassword: {
width: '70%', width: '100%',
height: '100%', height: '100%',
backgroundColor: 'white', backgroundColor: 'white',
}, },
@ -20,6 +21,7 @@ export default StyleSheet.create({
backgroundColor: 'white', backgroundColor: 'white',
paddingHorizontal: 15, paddingHorizontal: 15,
marginTop: 10, marginTop: 10,
borderRadius: 15
}, },
viewIndicator: { viewIndicator: {
flex: 1, flex: 1,

Loading…
Cancel
Save