Hello everyone =) I'm trying to convert a tweak which created in Flex 3 into a .deb by using theos. I just can't figure out how to use the -void with a return by an argument. i'm new in this and still study. Thank you!
%hook UBTripAddressesViewController
-(bool)_allowsDropoffLocationToBeShown {
return true;
}
%end
%hook UBTripAddressesView
-(bool) shouldDisplayDropoff {
return true;
}
-(void) setDropoffAddressText:(id) isEnables:(bool) {
return pass-through;
argument #1 pass-through;
argument #2 true;
}
-(void)_updateDropoffContentEdgeInsets {
return pass-through;
}
-(bool) shouldDisplayPickup {
return false;
}
%end
%hook UBEarningsTrip
-(id) dropoffAddress {
return pass-through;
}
%end
%hook UBTrip
-(id) dropoffLocation {
return pass-through;
}
%end
%hook UBSecondaryDispatchView
-(void) setShowPickupAndDropoffAddress:(bool) {
return pass-through;
argument #1 true;
}
-(bool) showPickupAndDropoffAddress {
return true;
}
%end
%hook UBSecondaryDispatchDefaultAcceptView
-(void) setShowPickupAndDropoffAddress:(bool) {
return pass-through;
argument #1 pass-through;
}
-(bool) showPickupAndDropoffAddress {
return true;
}
%end
%hook UBOnTripMapViewController
-(bool)_allowsDropoffLocationToBeShown {
return pass-through;
}
%end
%hook UBNavigationInfoViewController
-(void)_updateDisplayForDisplay {
return pass-through;
}
-(void)_updateDisplay {
return pass-through;
}
%end
%hook UBTripAddressesViewController
-(void)_updateDisplayForDisplay {
return pass-through;
}
-(void)_updateDisplay {
return pass-through;
}
%end
%hook UBAddress
-(void) setDisplayTitle:(id) {
return pass-through;
argument #1 pass-through;
}
%end