Finely slice the red onion. Put it in a small bowl with the white wine vinegar, sugar and salt. Stir well and leave to one side. You can make this the day before and keep it in the fridge.
Cook the sticky Thai rice according to packet instructions.
Cut the halloumi into thick slices. You want 3 slices per serving.
Heat the olive oil in a frying pan over a medium heat. Add the halloumi and cook until golden brown on both sides.
Turn off the heat, add the sweet chilli sauce and toss the halloumi until coated. Leave to one side.
Put 50ml water in the bottom of a small pan. Add the baby corn and cook for 5-6 minutes until al dente.
Peel and chop the avocados. Slice the lime and red chilli.
To serve, pile the rice into bowls and top with the sweet chilli halloumi, pickled onions, baby corn, pineapple, avocado, lime slices and chilli slices to taste.